关于后端:程序员开发效率神器汇总

8次阅读

共计 3587 个字符,预计需要花费 9 分钟才能阅读完成。

一. 开发工具

1)sql2go
用于将 sql 语句转换为 golang 的 struct. 应用 ddl 语句即可。
例如对于创立表的语句: show create table xxx. 将输入的语句,间接粘贴进去就行。
http://stming.cn/tool/sql2go….

2)toml2go
用于将编码后的 toml 文本转换问 golang 的 struct.

https://xuri.me/toml-to-go/

3)curl2go
用来将 curl 命令转化为具体的 golang 代码.
https://mholt.github.io/curl-…

4)json2go
用于将 json 文本转换为 struct.
https://mholt.github.io/json-…

5)mysql 转 ES 工具
http://www.ischoolbar.com/EsP…

6)golang
模仿模板的工具,在反对泛型之前,能够思考应用。
https://github.com/cheekybits…

7)查看某一个库的依赖状况,相似于 go list 性能
https://github.com/KyleBanks/…

8)一个好用的文件压缩和解压工具,集成了 zip,tar 等多种性能,次要还有跨平台。
https://github.com/mholt/arch…

9)go 内置命令
go list 能够查看某一个包的依赖关系.
go vet 能够查看代码不合乎 golang 标准的中央。

10)热编译工具
https://github.com/silenceper…

11)revive
golang 代码品质检测工具
https://github.com/mgechev/re…

12)Go Callvis
golang 的代码调用链图工具
https://github.com/TrueFurby/…

13)Realize
开发流程改良工具
https://github.com/oxequa/rea…

14)Gotests
主动生成测试用例工具
https://github.com/cweill/got…

二. 调试工具

1)perf
代理工具,反对内存,cpu,堆栈查看,并反对火焰图.
perf 工具和 go-torch 工具,快捷定位程序问题.
https://github.com/uber-archi…
https://github.com/google/gops

2)dlv 近程调试
基于 goland+dlv 能够实现近程调式的能力.
https://github.com/go-delve/d…
提供了对 golang 原生的反对,相比 gdb 调试,简略太多。

3)网络代理工具
goproxy 代理,反对多种协定,反对 ssh 穿透和 kcp 协定.
https://github.com/snail007/g…

4)抓包工具
go-sniffer 工具,可扩大的抓包工具,能够开发自定义协定的工具包. 当初只反对了 http,mysql,redis,mongodb.
基于这个工具,咱们开发了 qapp 协定的抓包。
https://github.com/40t/go-sni…

5)反向代理工具,快捷凋谢内网端口供内部应用。
ngrok 能够让内网服务内部调用
https://ngrok.com/
https://github.com/inconshrev…

6)配置化生成证书
从根证书,到业务侧证书一键生成.
https://github.com/cloudflare…

7)收费的证书获取工具
基于 acme 协定,从 letsencrypt 生成收费的证书,有效期 1 年,可主动续期。
https://github.com/Neilpang/a…

8)开发环境管理工具,单机搭建可移植工具的利器。反对多种虚拟机后端。
vagrant 常被拿来同 docker 相比,值得领有。
https://github.com/hashicorp/…

9)轻量级容器调度工具
nomad 能够十分不便的治理容器和传统利用,相比 k8s 来说,简略不要太多.
https://github.com/hashicorp/…

10)敏感信息和密钥管理工具
https://github.com/hashicorp/…

11)高度可配置化的 http 转发工具,基于 etcd 配置。
https://github.com/gojek/weaver

12)过程监控工具 supervisor
https://www.jianshu.com/p/39b…

13)基于 procFile 过程管理工具. 相比 supervisor 更加简略。
https://github.com/ddollar/fo…

14)基于 http,https,websocket 的调试代理工具,配置功能丰富。在线教育的 nohost web 调试工具,基于此开发.
https://github.com/avwo/whistle

15)散布式调度工具
https://github.com/shunfei/cr…
https://github.com/ouqiang/go…

16)自动化运维平台 Gaia
https://github.com/gaia-pipel…

三. 网络工具

四. 罕用网站

go 百科全书: https://awesome-go.com/

json 解析: https://www.json.cn/

进口 IP: https://ipinfo.io/

redis 命令: http://doc.redisfans.com/

ES 命令首页:

https://www.elastic.co/guide/…

UrlEncode: http://tool.chinaz.com/Tools/…

Base64: https://tool.oschina.net/encr…

Guid: https://www.guidgen.com/

常用工具: http://www.ofmonkey.com/

五. golang 罕用库

日志
https://github.com/Sirupsen/l…
https://github.com/uber-go/zap

配置
兼容 json,toml,yaml,hcl 等格局的日志库.
https://github.com/spf13/viper

存储
mysql: https://github.com/go-xorm/xorm
es: https://github.com/elastic/el…
redis: https://github.com/gomodule/r…
mongo: https://github.com/mongodb/mo…
kafka: https://github.com/Shopify/sa…

数据结构
https://github.com/emirpasic/…

命令行
https://github.com/spf13/cobra

框架
https://github.com/grpc/grpc-go
https://github.com/gin-gonic/gin

并发
https://github.com/Jeffail/tunny
https://github.com/benmanns/g…
当初咱们框架在用的,尽管 star 不多,然而的确好用,当然还能够更好用.
https://github.com/rafaeldias…

工具
定义了实用的断定类,以及针对构造体的校验逻辑,防止业务侧写简单的代码.
https://github.com/asaskevich…
https://github.com/bytedance/…

protobuf 文件动静解析的接口,能够实现反射相干的能力。
https://github.com/jhump/prot…

表达式引擎工具
https://github.com/Knetic/gov…
https://github.com/google/cel-go

字符串解决
https://github.com/huandu/xst…

ratelimit 工具
https://github.com/uber-go/ra…
https://blog.csdn.net/chencho…
https://github.com/juju/ratel…

golang 熔断的库
熔断除了思考频率限度,还要思考 qps,出错率等其余货色.
https://github.com/afex/hystr…
https://github.com/sony/gobre…

表格
https://github.com/chenjiando…

tail 工具库
https://github.com/hpcloud/ta…

本文由 mdnice 多平台公布

正文完
 0