成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

程序員開發效率神器匯總!

新聞 前端
neon 是鵝廠的一位資深后臺開發工程師,多年工作下來他總結了很多效率神器,今天分享給大家。

[[283806]]

 本文作者: neonliu,騰訊 CSIG 開發工程師

neon 是鵝廠的一位資深后臺開發工程師,多年工作下來他總結了很多效率神器,今天分享給大家。

一. 開發工具

1)sql2go

用于將 sql 語句轉換為 golang 的 struct. 使用 ddl 語句即可。

例如對于創建表的語句: show create table xxx. 將輸出的語句,直接粘貼進去就行。

http://stming.cn/tool/sql2go.html

2)toml2go

用于將編碼后的 toml 文本轉換問 golang 的 struct.

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

3)curl2go

用來將 curl 命令轉化為具體的 golang 代碼.

https://mholt.github.io/curl-to-go/

4)json2go

用于將 json 文本轉換為 struct.

https://mholt.github.io/json-to-go/

5)mysql 轉 ES 工具

http://www.ischoolbar.com/EsParser/

6)golang

模擬模板的工具,在支持泛型之前,可以考慮使用。

https://github.com/cheekybits/genny

7)查看某一個庫的依賴情況,類似于 go list 功能

https://github.com/KyleBanks/depth

8)一個好用的文件壓縮和解壓工具,集成了 zip,tar 等多種功能,主要還有跨平臺。

https://github.com/mholt/archiver

9)go 內置命令

go list 可以查看某一個包的依賴關系.

go vet 可以檢查代碼不符合 golang 規范的地方。

10)熱編譯工具

https://github.com/silenceper/gowatch

11)revive

golang 代碼質量檢測工具

https://github.com/mgechev/revive

12)Go Callvis

golang 的代碼調用鏈圖工具

https://github.com/TrueFurby/go-callvis

13)Realize

開發流程改進工具

https://github.com/oxequa/realize

14)Gotests

自動生成測試用例工具

https://github.com/cweill/gotests

二.調試工具

1)perf

代理工具,支持內存,cpu,堆棧查看,并支持火焰圖.

perf 工具和 go-torch 工具,快捷定位程序問題.

https://github.com/uber-archive/go-torch

https://github.com/google/gops

2)dlv 遠程調試

基于 goland+dlv 可以實現遠程調式的能力.

https://github.com/go-delve/delve

提供了對 golang 原生的支持,相比 gdb 調試,簡單太多。

3)網絡代理工具

goproxy 代理,支持多種協議,支持 ssh 穿透和 kcp 協議.

https://github.com/snail007/goproxy

4)抓包工具

go-sniffer 工具,可擴展的抓包工具,可以開發自定義協議的工具包. 現在只支持了 http,mysql,redis,mongodb.

基于這個工具,我們開發了 qapp 協議的抓包。

https://github.com/40t/go-sniffer

5)反向代理工具,快捷開放內網端口供外部使用。

ngrok 可以讓內網服務外部調用

https://ngrok.com/

https://github.com/inconshreveable/ngrok

6)配置化生成證書

從根證書,到業務側證書一鍵生成.

https://github.com/cloudflare/cfssl

7)免費的證書獲取工具

基于 acme 協議,從 letsencrypt 生成免費的證書,有效期 1 年,可自動續期。

https://github.com/Neilpang/acme.sh

8)開發環境管理工具,單機搭建可移植工具的利器。支持多種虛擬機后端。

vagrant常被拿來同 docker 相比,值得擁有。

https://github.com/hashicorp/vagrant

9)輕量級容器調度工具

nomad 可以非常方便的管理容器和傳統應用,相比 k8s 來說,簡單不要太多.

https://github.com/hashicorp/nomad

10)敏感信息和密鑰管理工具

https://github.com/hashicorp/vault

11)高度可配置化的 http 轉發工具,基于 etcd 配置。

https://github.com/gojek/weaver

12)進程監控工具 supervisor

https://www.jianshu.com/p/39b476e808d8

13)基于 procFile 進程管理工具. 相比 supervisor 更加簡單。

https://github.com/ddollar/foreman

14)基于 http,https,websocket 的 調試代理工具 ,配置功能豐富。在線教育的 nohost web 調試工具,基于此開發.

https://github.com/avwo/whistle

15)分布式調度工具

https://github.com/shunfei/cronsun/blob/master/README_ZH.md

https://github.com/ouqiang/gocron

16)自動化運維平臺 Gaia

https://github.com/gaia-pipeline/gaia

三. 網絡工具

四. 常用網站

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

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

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

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

ES 命令首頁:

https:/ /w ww.elasti c.co/guide/cn/elasticsearch/guide/current/index.html

UrlEncode: http://tool.chinaz.com/Tools/urlencode.aspx

Base64: https://tool.oschina.net/encrypt?type=3

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

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

五. golang 常用庫

日志

https://github.com/Sirupsen/logrus

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/elasticsearch

redis: https://github.com/gomodule/redigo

mongo: https://github.com/mongodb/mongo-go-driver

kafka: https://github.com/Shopify/sarama

數據結構

https://github.com/emirpasic/gods

命令行

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/goworker

現在我們框架在用的,雖然 star 不多,但是確實好用,當然還可以更好用.

https://github.com/rafaeldias/async

工具

定義了實用的判定類,以及針對結構體的校驗邏輯,避免業務側寫復雜的代碼.

https://github.com/asaskevich/govalidator

https://github.com/bytedance/go-tagexpr

protobuf 文件動態解析的接口,可以實現反射相關的能力。

https://github.com/jhump/protoreflect

表達式引擎工具

https://github.com/Knetic/govaluate

https://github.com/google/cel-go

字符串處理

https://github.com/huandu/xstrings

ratelimit 工具

https://github.com/uber-go/ratelimit

https://blog.csdn.net/chenchongg/article/details/85342086

https://github.com/juju/ratelimit

golang 熔斷的庫

熔斷除了考慮頻率限制,還要考慮 qps,出錯率等其他東西.

https://github.com/afex/hystrix-go

https://github.com/sony/gobreaker

表格

https://github.com/chenjiandongx/go-echarts

tail 工具庫

https://github.com/hpcloud/taglshi

 

 

責任編輯:張燕妮 來源: 騰訊技術工程
相關推薦

2014-03-28 10:30:20

程序員碼農

2020-08-10 06:22:02

繪圖命令dot

2011-09-30 11:13:31

51CTO博客一周熱門程序員

2021-08-10 14:21:02

開發程序員工具

2014-07-14 11:28:41

2022-05-20 15:36:17

前端工具開發

2022-01-26 07:18:57

CopyTransl閱讀翻譯文本翻譯

2023-09-06 14:32:37

程序員工具開發

2013-05-30 13:30:00

代碼效率程序員

2014-12-05 09:59:17

程序員

2020-10-10 11:43:29

Java開發代碼

2025-05-13 00:05:00

CursorMCP工具

2011-03-30 09:26:20

c++程序員

2018-04-02 11:19:20

MacAppleScript代碼

2021-03-26 11:52:50

Debug效率運行

2012-01-17 10:34:14

程序員

2020-10-08 15:01:17

開發Java程序員

2024-09-06 08:02:52

2012-03-06 09:22:46

程序員

2013-08-20 09:33:59

程序員
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 91精品国产91久久综合桃花 | 一区二区三区日 | 国产成人精品一区二区三区视频 | 精品一区二区久久久久久久网站 | 性色av一区二区三区 | 99精品一区二区三区 | 综合久久亚洲 | a级毛片毛片免费观看久潮喷 | 中文字幕欧美一区 | 欧美a在线 | 黄视频免费在线 | 日韩av黄色 | 国产精品高潮呻吟久久久久 | 久久男女视频 | 亚洲精品一二三 | 日韩在线国产 | 国产视频二区在线观看 | 日韩成人在线视频 | 国产91在线 | 亚洲 | 91精产国品一二三区 | 亚洲精品在线视频 | 久久精品久久久久久 | 精品国产黄a∨片高清在线 www.一级片 国产欧美日韩综合精品一区二区 | 国产精品久久久久久福利一牛影视 | 亚洲福利| 久久综合九色综合欧美狠狠 | 日韩欧美成人一区二区三区 | 精品日韩欧美一区二区 | 欧美激情精品久久久久久 | 在线免费黄色小视频 | 一级毛片视频在线观看 | www四虎com | 奇米四色在线观看 | 亚洲三区在线观看 | 亚洲在线免费观看 | 中文字幕精品一区 | 亚洲 欧美 日韩 在线 | 一区二区中文 | 国产探花在线精品一区二区 | 中文字幕日韩一区 | 国产韩国精品一区二区三区 |