跳过正文

Go常用第三方库

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

Blazing fast, structured, leveled logging in Go.

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

lumberjack is a log rolling package for Go

Go
4974
603
go get -u github.com/natefinch/lumberjack
orm
go-gorm/gorm

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

Go
37449
3969
go get -u gorm.io/gorm
json
tidwall/gjson

Get JSON values quickly - JSON parser for Go

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

Go configuration with fangs

Go
27780
2025
cli框架
spf13/cobra

A Commander for modern Go CLI interactions

Go
39109
2877
熔断限流
alibaba/sentinel-golang

Sentinel Go enables reliability and resiliency for Go microservices

Go
2819
438
文档
redis分布式锁
go-redsync/redsync

Distributed mutual exclusion lock using Redis for Go

Go
3522
330
mock
agiledragon/gomonkey

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

Go
2083
182
时间
golang-module/carbon

Go
4
0
类型转换
spf13/cast

safe and easy casting from one type to another in Go

Go
3616
306

参考