Files
golib/README.md
nabbar 9e8179374b README:
- Add some README file to give missing documentations or update existing documentation file

Package Archive:
- Add some comments to godoc information
- Moving NopWriterCloser interface to ioutils package

Package IOUtils:
- New package NopWriterCloser to implement interfac like NopReader

Package Database:
- KVMap: fix missing function following update of kvdriver

Package Duration:
- Rename BDD testing

Package Context/Gin:
- Moving function New between model & interface file

Package AWS:
- rework Walk function to use more generic with standard walk caller function
- func walk will now no more return and include error (can be catched into the given func)
- func walk will now return a bool to continue or stop the loop
- func walk with many input function will now stop when all given function return false
- func walk will now return error only about main process and not given function

Package errors:
- Add interface error into interface Error

Package IOUtils:
- Moving IOWrapper as subPackage and optimize process + allow thread safe
2025-05-25 06:29:25 +02:00

58 lines
2.1 KiB
Markdown

# golib : custom lib for go
[![Known Vulnerabilities](https://snyk.io/test/github/nabbar/golib/badge.svg)](https://snyk.io/test/github/nabbar/golib)
[![Go](https://github.com/nabbar/golib/workflows/Go/badge.svg)](https://github.com/nabbar/golib)
[![GoDoc](https://pkg.go.dev/badge/github.com/nabbar/golib)](https://pkg.go.dev/github.com/nabbar/golib)
[![Go Report Card](https://goreportcard.com/badge/github.com/nabbar/golib)](https://goreportcard.com/report/github.com/nabbar/golib)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
## using in source code
first get the source dependancies
```shell script
go get github.com/nabbar/golib/...
```
second, import the needed lib in your code
```go
import "github.com/nabbar/golib/version"
```
## Details of packages :
* [package archive](archive/README.md)
* [package artifact](artifact/README.md)
* [package atomic](atomic/README.md)
* [package aws](aws/README.md)
* [package certificates](certificates/README.md)
* [pacakge cobra](cobra/README.md)
* [package config](config/README.md)
* [package console](console/README.md)
* [package context](context/README.md)
* [package database](database/README.md)
* [pacakge duration](duration/README.md)
* [package encoding](encoding/README.md)
* [package errors](errors/README.md)
* [package file](file/README.md)
* [package ftpclient](ftpclient/README.md)
* [package httpcli](httpcli/README.md)
* [package httpserver](httpserver/README.md)
* [package ioutil](ioutil/README.md)
* [package ldap](ldap/README.md)
* [package logger](logger/README.md)
* [package mail](mail/README.md)
* [package mailer](mailer/README.md)
* [package mailPooler](mailPooler/README.md)
* [package monitor](monitor/README.md)
* [package network](network/README.md)
* [package password](password/README.md)
* [package router](router/README.md)
* [package static](static/README.md)
* [package status](status/README.md)
* [package version](version/README.md)
# Build tags
To build static, pure go, some packages need to use tags osusergo and netgo, like this
```bash
go build -a -tags "osusergo netgo" -installsuffix cgo ...
```