mirror of
https://github.com/nabbar/golib.git
synced 2025-12-24 11:51:02 +08:00
52f0d6fa04a5cd1d2ad6d1232f1938cc2a43ea81
- Change reloading component method : try to reload all component and store errors, report list of errors but don't break the reloading process Package Logger : - Fix bug with entry logger filtering Package Viper: - reword message log before reloading config file (watchFS) - add message log after reloading config file (watchFS) Package Status : - Fix DATA Race with status/info - Add component key into log error message for health - Add component key into function to use it into info (name) - Reword health message : no OK/KO (still into status info), add error message reporting Package httpserver : - status info : apply update status component, use key in name - status info : optimize code Package Request : - Fix error in url path operation - Status info : optimize code - Status info : apply update component, add endpoint hostname with name Package Static : - apply status component update Other : - Bump dependencies
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
99.7%
Shell
0.3%