mirror of
https://github.com/nabbar/golib.git
synced 2025-12-24 11:51:02 +08:00
b190739581d18de2b5ec5451a9223bb2df398b71
- Client: optimize code & memory - Client: allow multiple send content for one connection - Server: optmize code - Server: optimize memory use & stream Package server: - Rework chan / cancel process - Simplify & optimize chan / cancel process - Add Function Action for Ticker as FuncTicker - Rename type func Action to FuncAction Package httpserver: - Fix error on starting runner - Log error on starting runner - Optimize some code Package config: - Add log info for each starting / reloading component (if default logger is set) - Add log error for starting error or not started for each component on start / reload (if default logger is set) Package monitor: - review ticker delay for starting puller (pass from 500ms to 50ms) 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%