mirror of
https://github.com/nabbar/golib.git
synced 2025-09-26 20:01:15 +08:00
c4b5f11efc4b3f39d224fbebf73cc02e0b4c6fe4

Package ioutils: - remove file progress from ioutils and rework it to package file/progress Package file/progress: - simplify call / use of file progress - optimize code - use atomic to function progress - isolation part of code - make interface more compatible with *os/File / io interface Package archive/gzipreader - create package to expose a io.reader interface from a no gzipped io.reader - add interface GZipReader to expose metrics like rate of compression Package archive: - apply following change - add minor internal change into errors files Package artifact: - apply following change - add minor internal change into errors files Package aws: - apply following change - removing minio server from repo Package mail: - apply following change - add minor internal change into errors files Package nutsdb: - apply following change - add minor internal change into errors files Package static: - apply following change Other: - bump dependencies - ci/cd : add a wget command to dl minio server for testing - add aws/minio to gitignore
golib : custom lib for go
snyk project : https://app.snyk.io/org/nabbar/project/2f55a2b8-6015-4db1-b859-c2bc3b7548a7
using in source code
first get the source dependancies
go get -u github.com/nabbar/golib/...
second, import the needed lib in your code
import "github.com/nabbar/golib/version"
Details of packages :
- package errors
- package logger
- package network
- package password
- package router
- package static
- package status
- package version
Build tags
To build static, pure go, some packages need to use tags osusergo and netgo, like this
go build -a -tags osusergo,netgo -installsuffix cgo ...
Languages
Go
100%