mirror of
https://github.com/nabbar/golib.git
synced 2025-12-24 11:51:02 +08:00
0f92caff5fe97764d94b8beff77c0d8f488a61ba
- Add: allowing parsing day in Duration package who's parsing value before a d letter - Add: a sub package named big with another custom type Duration but this Duration is based of number of seconds instead of number of nanosecond to golib/Duration or time.Duration package. The result big Duration package allow to manage duration up to 106,751,991,167,300 d 15 h 30 m 7 s - Add: into some BDD test with ginkgo framework - Fix: marshaller function in package Duration - Fix: big Duration - Refactor: optimize some code convertion - Refactor: truncate function to not use float64 casting
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%