golang库
处理 /etc/hosts 文件的工具
https://github.com/kevinburke/hostsfile
任意精度定点十进制数
https://github.com/shopspring/decimal
国产的 Go 微服务框架
stars: 15.1k
https://github.com/go-kratos/kratos
简单、优雅、特性丰富的日志库
error可带trace
https://github.com/gleich/lumber
索尼出品的 Circuit Breaker断路器
https://github.com/sony/gobreaker
全文本搜索和索引库
stars:7.8k 支持任何go数据结构包括json
https://github.com/blevesearch/bleve
Go中的.NET LINQ功能
类似工作流,mapreduce
stars 2.7k
https://github.com/ahmetb/go-linq
一个与 Git 兼容的小型 Git 实现
https://github.com/WithGJR/regit-go
字节跳动出品的高性能rpc框架
https://github.com/cloudwego/kitex
facebook 出品的 Entity 框架,简单而强大的 ORM,用于建模和查询数据
stars 6.6k
https://github.com/facebook/ent
微服务标准库
starts 19.5k
https://github.com/go-kit/kit
Uber 的 zap 库是如何做到高性能的
高性能日志库
https://jishuin.proginn.com/p/763bfbd3bf8d
项目地址:https://github.com/uber-go/zap
一个开源的认证和授权服务器
为其他应用程序提供 2FA 和 SSO
stars 5.1k
https://github.com/authelia/authelia
PostgreSQL ORM
专注于 PostgreSQL 的特性和性能
https://github.com/go-pg/pg
goroutine 的命令行监控工具
https://github.com/bcicen/grmon
用于访问各种文件系统一致的 API
创建完全不依赖磁盘的模拟和测试文件系统
https://github.com/spf13/afero
goroutine 池
stars 2.2k
https://github.com/Jeffail/tunny
提供很多 Go 模板函数 约70个函数
推荐 stars 2.3k
https://github.com/Masterminds/sprig
函数: http://masterminds.github.io/sprig/
纯 Go 语言实现的通用语法高亮库
推荐,非常不错,可输出为控制台颜色字体和html stars:2.8k
https://github.com/alecthomas/chroma
在线演示 https://swapoff.org/chroma/playground/
动态json解析/创建/编辑库
用于处理结构不确定的sjon stars 2.4k
https://github.com/Jeffail/gabs
实现无限缓存的channel
文章:https://colobu.com/2021/05/11/unbounded-channel-in-go/
项目:https://github.com/smallnest/chanx
HTTP 安全中间件,包含很多安全策略
stars 1.7k 可与gin集成
https://github.com/unrolled/secure
MySQL 网络协议库
支持replication canal client server driver等功能
stars 3k
https://github.com/go-mysql-org/go-mysql
缓存库
无GC开销,高并发性能,支持过期时间
可以在内存中缓存无限数量的对象,而不会增加延迟和降低吞吐量
stars 3.3k
https://github.com/coocood/freecache
相似的库
https://github.com/golang/groupcache 10.3k
https://github.com/allegro/bigcache 4.9k
使用接缝雕刻来拉伸图像的不重要部分,从而允许在调整大小的过程中考虑图像的内容
stars 9.6k
https://github.com/esimov/caire
颜色文本输出包
stars 4.3k
https://github.com/fatih/color
轻松 Render JSON,XML,二进制数据和HTML 模板响应
https://github.com/unrolled/render
内部服务的 Go 单点登录方案
stars 2.6k
https://github.com/buzzfeed/sso
用 raw go 替换 kubernetes yaml 的框架
https://github.com/kris-nova/naml
在 Go 中创建流水线的库
https://github.com/deliveryhero/pipeline
创建Kubernetes mutating和validating网络钩子的框架
https://github.com/slok/kubewebhook
开源,分布式,简单高效的全文搜索引擎
stars 5.8k
https://github.com/go-ego/riot
实现goroutine池的库
stars 5.9k 带中文文档
https://github.com/panjf2000/ants
文章: https://blog.csdn.net/darjun/article/details/117576252
为任意Go程序自动加上HTTPS,Caddy使用的一个库
https://github.com/caddyserver/certmagic
转载请注明:轻风博客 » 收集的golang常用库-2021-下