mirror of
https://github.com/nabbar/golib.git
synced 2025-12-24 11:51:02 +08:00
536b4e2705581e8aecd5c236ee9bffb67e28a586
Documentation Update:
- 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
golib : custom lib for go
using in source code
first get the source dependancies
go get github.com/nabbar/golib/...
second, import the needed lib in your code
import "github.com/nabbar/golib/version"
Details of packages :
- package archive
- package artifact
- package atomic
- package aws
- package certificates
- pacakge cobra
- package config
- package console
- package context
- package database
- pacakge duration
- package encoding
- package errors
- package file
- package ftpclient
- package httpcli
- package httpserver
- package ioutil
- package ldap
- package logger
- package mail
- package mailer
- package mailPooler
- package monitor
- 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%