跳过正文

Go常用第三方库

·193 字
功能项目备注
日志
uber-go/zap

Blazing fast, structured, leveled logging in Go.

Go
22600
1462
go get -u go.uber.org/zap
日志切割
natefinch/lumberjack

lumberjack is a log rolling package for Go

Go
4987
606
go get -u github.com/natefinch/lumberjack
orm
go-gorm/gorm

The fantastic ORM library for Golang, aims to be developer friendly

Go
37558
3977
go get -u gorm.io/gorm
json
tidwall/gjson

Get JSON values quickly - JSON parser for Go

Go
14663
863
go get -u github.com/tidwall/gjson
配置管理
spf13/viper

Go configuration with fangs

Go
27878
2025
cli框架
spf13/cobra

A Commander for modern Go CLI interactions

Go
39432
2892
熔断限流
alibaba/sentinel-golang

Sentinel Go enables reliability and resiliency for Go microservices

Go
2824
439
文档
redis分布式锁
go-redsync/redsync

Distributed mutual exclusion lock using Redis for Go

Go
3538
331
mock
agiledragon/gomonkey

gomonkey is a library to make monkey patching in unit tests easy

Go
2097
183
时间
golang-module/carbon

Go
5
1
类型转换
spf13/cast

safe and easy casting from one type to another in Go

Go
3630
307

参考