asongGo
Gin
GinGoWebmartiniAPIGowebGin
来自网络
GinGin
Gin

github地址:https://github.com/gin-gonic/gin

zap
zapuberzap
  • 它非常的快

  • 它同时提供了结构化日志记录和printf风格的日志记录

CPUzap
zap
来自官方文档
zap

github地址:https://github.com/uber-go/zap

jsoniter
jsonencoding/jsonjsoniter
来自官方文档

github地址:https://github.com/json-iterator/go

jsoniter
gorm
gormGoORMMySQLPostgreSQLSQliteSQL Server
gormgormgorm
PreloadJoins

github地址:https://github.com/go-gorm/gorm

官方文档:https://gorm.io/zh_CN/docs/index.html

robfig/cron

github地址:https://github.com/robfig/cron

croncrontabcrontabcroncron
package main

import (
  "fmt"
  "time"

  "github.com/robfig/cron/v3"
)

func main() {
  c := cron.New()

  c.AddFunc("@every 1s", func() {
    fmt.Println("tick every 1 second run once")
  })
  c.Start()
  time.Sleep(time.Second * 10)
}
cron
cron
wire
1202
  • 依赖反射实现的运行时依赖注入:inject、uber、dig

  • 使用代码生成实现的依赖注入:wire

wiredebug
wirewire

github地址:https://github.com/google/wire

ants
goroutineantsantsants

github地址:https://github.com/panjf2000/ants

ants1k

总结

go-redisgo-sql-driverdidi/gendrygolang/groupcacheolivere/elastic/v7

如果大家也有经常使用的,比较好的开源库,欢迎推荐给我,我也学习学习!!!

关注 asong,吸取他的知识 👆