go语言常用的第三方库
go语言常用的第三方库
WEB框架
1.Gin https://github.com/gin-gonic/gin
2.Beego https://github.com/astaxie/beego
3.martini https://github.com/go-martini/martini
HTTP
1.httprouter https://github.com/julienschmidt/httprouter
2.fasthttp https://github.com/valyala/fasthttp
3.mux https://github.com/gorilla/mux
JSON解析
1.json-iterator https://github.com/json-iterator/go
2.jsonparser https://github.com/buger/jsonparser
数据库以及ORM
1.LevelDB https://github.com/syndtr/goleveldb
2.BoltDB https://github.com/boltdb/bolt
3.MySQL https://github.com/go-sql-driver/mysql
4.tidb https://github.com/pingcap/tidb
5.ssdb https://github.com/ideawu/ssdb
6.gorm https://github.com/jinzhu/gorm
爬虫
1.Colly https://github.com/gocolly/colly
2.Goquery https://github.com/PuerkitoBio/goquery
中间件
1.redis https://github.com/go-redis/redis
2.ElasticSearch https://github.com/olivere/elastic
3.Alice https://github.com/justinas/alice
日志
1.zap https://github.com/uber-go/zap
错误处理
1.errors https://github.com/pkg/errors
消息队列
1.Nsq https://github.com/nsqio/nsq
Service Mesh
1.Istio https://github.com/istio/istio
RPC
1.rpcx https://github.com/smallnest/rpcx
2.grpc https://github.com/grpc/grpc-go
协程池
1.ants https://github.com/panjf2000/ants
视觉图像处理
1.bild https://github.com/anthonynsimon/bild
2.gmf https://github.com/3d0c/gmf
3.opencv https://github.com/hybridgroup/gocv
网络
1.KCP https://github.com/xtaci/kcp-go
2.frp https://github.com/fatedier/frp
测试
1.gock https://github.com/h2non/gock
2.goreporter https://github.com/360EntSecGroup-Skylar/goreporter
unsafe: 包含了一些打破 Go 语言“类型安全”的命令,一般的程序中不会被使用,可用在 C/C++ 程序的调用中。
syscall-os-os/exec:
os: 提供给我们一个平台无关性的操作系统功能接口,采用类UNIX设计,隐藏了不同操作系统间差异,让不同的文件系统和操作系统对象表现一致。
os/exec: 提供我们运行外部操作系统命令和程序的方式。
syscall: 底层的外部包,提供了操作系统底层调用的基本接口。
archive/tar 和 /zip-compress:压缩(解压缩)文件功能。
fmt-io-bufio-path/filepath-flag:
fmt: 提供了格式化输入输出功能。
io: 提供了基本输入输出功能,大多数是围绕系统功能的封装。
bufio: 缓冲输入输出功能的封装。
path/filepath: 用来操作在当前系统中的目标文件名路径。
flag: 对命令行参数的操作。
strings-strconv-unicode-regexp-bytes:
strings: 提供对字符串的操作。
strconv: 提供将字符串转换为基础类型的功能。
unicode: 为 unicode 型的字符串提供特殊的功能。
regexp: 正则表达式功能。
bytes: 提供对字符型分片的操作。
math-math/cmath-math/big-math/rand-sort:
math: 基本的数学函数。
math/cmath: 对复数的操作。
math/rand: 伪随机数生成。
sort: 为数组排序和自定义集合。
math/big: 大数的实现和计算。
container-/list-ring-heap: 实现对集合的操作。
list: 双链表。
ring: 环形链表。
time-log:
time: 日期和时间的基本操作。
log: 记录程序运行时产生的日志。
encoding/Json-encoding/xml-text/template:
encoding/Json: 读取并解码和写入并编码 Json 数据。
encoding/xml:简单的 XML1.0 解析器。
text/template:生成像 HTML 一样的数据与文本混合的数据驱动模板。
net-net/http-html:
net: 网络数据的基本操作。
http: 提供了一个可扩展的 HTTP 服务器和客户端,解析 HTTP 请求和回复。
html: HTML5 解析器。
runtime: Go 程序运行时的交互操作,例如垃圾回收和协程创建。
reflect: 实现通过程序运行时反射,让程序操作任意类型的变量。