Go开源库和项目整理

xiaohai 2021-05-05 21:37:57 998人围观 标签: Go 
简介Golang开源库和项目整理,持续更新

WEB框架

1、IRIS

官网地址:https://iris-go.com/

Github:https://github.com/kataras/iris

Iris - The fastest web framework,号称全世界最快的WEB框架

2、macaron

官网地址:https://go-macaron.com/

Github地址:https://github.com/go-macaron/macaron

Macaron 是一个具有高生产力和模块化设计的 Go Web 框架。框架秉承了 Martini 的基本思想,并在此基础上做出高级扩展。

3、Gin

官网地址:https://gin-gonic.com/

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

gin中文文档 https://github.com/skybebe/gin-doc-cn

gin Api文档包 https://github.com/swaggo/gin-swagger

The fastest full-featured web framework for Go. Crystal clear.

4、fasthttp

Github地址:github.com/valyala/fasthttp

CLI

1、cli

Github地址:https://github.com/urfave/cli

一个简单,快速且有趣的软件包,用于在Go中构建命令行应用

2、cobra

Github地址:github.com/spf13/cobra

Cobra既是用于创建功能强大的现代CLI应用程序的库,又是用于生成应用程序和命令文件的程序。

3、pb进度条

Github地址:github.com/cheggaaa/pb/v3

Simple progress bar for console programs.

JSON库

1、json-iterator

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

2、jwt-go

Github地址:https://github.com/dgrijalva/jwt-go

日志

1、logrus

Github地址:github.com/sirupsen/logrus

Redis

1、
redis包 命令式操作 github.com/garyburd/redigo/redis

2、
redis包 便捷操作 github.com/go-redis/redis

数据库操作

1、ORM

文档地址:http://gorm.book.jasperxu.com/

Github地址:https://github.com/go-sql-driver/mysql

Golang写的,开发人员友好的ORM库。

2、gocraft/dbr

Github地址:https://github.com/gocraft/dbr

Go的数据库/ sql的附加功能,可实现超快速的性能和便捷性。

3、gorose

Github地址:https://github.com/gohouse/gorose

gorose是一个golang orm框架, 借鉴自laravel的eloquent. gorose 2.0 采用模块化架构, 通过interface的api通信,严格的上层依赖下层.每一个模块都可以拆卸, 甚至可以自定义为自己喜欢的样子.

定时任务

1、cron

Github地址:github.com/robfig/cron

参数验证

1、govalidator

Github地址:github.com/asaskevich/govalidator

消息队列

1、Machinery异步队列

Github地址:https://github.com/RichardKnop/machinery

2、RabbitMQ包

Github地址:https://github.com/streadway/amqp

配置文件

1、viper

Github地址:github.com/spf13/viper

微信

1、wechat

Github地址:https://github.com/chanxuehong/wechat

Websocket

1、websocket

Github地址:github.com/gorilla/websocket

Api网关

1、gateway

Github地址:https://github.com/fagongzi/gateway

其他

1、类型转换

Github地址:github.com/Unknwon/com

2、优雅的重启Http服务

Github地址:github.com/fvbock/endless

目前只支持linux环境下使用,零时间重启。
Mqtt通信    github.com/eclipse/paho.mqtt.golang    go文档http://www.eclipse.org/paho/clients/golang/
glide包管理工具    https://zhuanlan.zhihu.com/p/27994151    
权限控制    github.com/mikespook/gorbac    
CloudXNS-DDNS    https://github.com/zwh8800/cloudxns-ddns    动态域名客户端 docker 镜像
Restful和gprc相互转换    https://github.com/grpc-ecosystem/grpc-gateway    example => https://github.com/go-up/go-example
proto构建Go代码工具    github.com/tuneinc/truss    用于RPC协议文档生成
GO直播服务器    https://github.com/gwuhaolin/livego    
http限流    https://github.com/didip/tollbooth