go

module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2024 License: MIT

README

About

Go Go Report Card LICENSE

giant-stone/go is a Go library which provides utility functions for common programming tasks.

giant-stone/go 是一个将多个生产环境项目高频使用函数整合一起,避免在每个项目中不断重复。

安装最新版本

go list -m -versions github.com/giant-stone/go
# 在输出中选择最新一个版本,比如 `v0.0.14`
go get -u github.com/giant-stone/go@v0.0.14

使用示例见 https://github.com/giant-stone/go/wiki

更新 ghttp mock 代码

mockgen -source=ghttp/ghttp.go -destination=ghttp/httpclitest.go -package=ghttp

Directories

Path Synopsis
gcmd
json.tool
Python json.tool function implementation.
Python json.tool function implementation.
Package ghttp is a generated GoMock package.
Package ghttp is a generated GoMock package.
logger customs go.uber.org/zap logger with level, caller context and rorate file via github.com/natefinch/lumberjack.
logger customs go.uber.org/zap logger with level, caller context and rorate file via github.com/natefinch/lumberjack.
Package gracequit handle delete pid file at dead, set logging path and folder, setup http/pprof service and etc.
Package gracequit handle delete pid file at dead, set logging path and folder, setup http/pprof service and etc.
DEPRECATED.
DEPRECATED.
All Unix time(stamp) in UTC.
All Unix time(stamp) in UTC.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL