最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

go程序員日常開發(fā)效率神器匯總

 更新時間:2022年11月26日 16:22:58   作者:騰訊技術工程  
這篇文章主要介紹了go程序員開發(fā)效率神器包含了go常用開發(fā)工具,go調(diào)試工具,go常用網(wǎng)站,golang常用庫,需要的朋友可以參考下

一. 開發(fā)工具

1)sql2go
用于將 sql 語句轉(zhuǎn)換為 golang 的 struct. 使用 ddl 語句即可。
例如對于創(chuàng)建表的語句: show create table xxx. 將輸出的語句,直接粘貼進去就行。
http://stming.cn/tool/sql2go.html

2)toml2go
用于將編碼后的 toml 文本轉(zhuǎn)換問 golang 的 struct.
https://xuri.me/toml-to-go/

3)curl2go
用來將 curl 命令轉(zhuǎn)化為具體的 golang 代碼.
https://mholt.github.io/curl-to-go/

4)json2go
用于將 json 文本轉(zhuǎn)換為 struct.
https://mholt.github.io/json-to-go/

5)mysql 轉(zhuǎn) 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 內(nèi)置命令
go list 可以查看某一個包的依賴關系.
go vet 可以檢查代碼不符合 golang 規(guī)范的地方。

10)熱編譯工具
https://github.com/silenceper/gowatch

11)revive
golang 代碼質(zhì)量檢測工具
https://github.com/mgechev/revive

12)Go Callvis
golang 的代碼調(diào)用鏈圖工具
https://github.com/TrueFurby/go-callvis

13)Realize
開發(fā)流程改進工具
https://github.com/oxequa/realize

14)Gotests
自動生成測試用例工具
https://github.com/cweill/gotests

二.調(diào)試工具

1)perf
代理工具,支持內(nèi)存,cpu,堆棧查看,并支持火焰圖.
perf 工具和 go-torch 工具,快捷定位程序問題.
https://github.com/uber-archive/go-torchhttps://github.com/google/gops

2)dlv 遠程調(diào)試
基于 goland+dlv 可以實現(xiàn)遠程調(diào)式的能力.
https://github.com/go-delve/delve提供了對 golang 原生的支持,相比 gdb 調(diào)試,簡單太多。

3)網(wǎng)絡代理工具
goproxy 代理,支持多種協(xié)議,支持 ssh 穿透和 kcp 協(xié)議.
https://github.com/snail007/goproxy

4)抓包工具
go-sniffer 工具,可擴展的抓包工具,可以開發(fā)自定義協(xié)議的工具包. 現(xiàn)在只支持了 http,mysql,redis,mongodb.
基于這個工具,我們開發(fā)了 qapp 協(xié)議的抓包。
https://github.com/40t/go-sniffer

5)反向代理工具,快捷開放內(nèi)網(wǎng)端口供外部使用。
ngrok 可以讓內(nèi)網(wǎng)服務外部調(diào)用
https://ngrok.com/https://github.com/inconshreveable/ngrok

6)配置化生成證書
從根證書,到業(yè)務側(cè)證書一鍵生成.
https://github.com/cloudflare/cfssl

7)免費的證書獲取工具
基于 acme 協(xié)議,從 letsencrypt 生成免費的證書,有效期 1 年,可自動續(xù)期。
https://github.com/Neilpang/acme.sh

8)開發(fā)環(huán)境管理工具,單機搭建可移植工具的利器。支持多種虛擬機后端。
vagrant常被拿來同 docker 相比,值得擁有。
https://github.com/hashicorp/vagrant

9)輕量級容器調(diào)度工具
nomad 可以非常方便的管理容器和傳統(tǒng)應用,相比 k8s 來說,簡單不要太多.
https://github.com/hashicorp/nomad

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

11)高度可配置化的 http 轉(zhuǎn)發(fā)工具,基于 etcd 配置。
https://github.com/gojek/weaver

12)進程監(jiān)控工具 supervisor
https://www.jianshu.com/p/39b476e808d8

13)基于procFile進程管理工具. 相比 supervisor 更加簡單。
https://github.com/ddollar/foreman

14)基于 http,https,websocket 的調(diào)試代理工具,配置功能豐富。在線教育的 nohost web 調(diào)試工具,基于此開發(fā).
https://github.com/avwo/whistle

15)分布式調(diào)度工具
https://github.com/shunfei/cronsun/blob/master/README_ZH.mdhttps://github.com/ouqiang/gocron

16)自動化運維平臺 Gaia
https://github.com/gaia-pipeline/gaia

三. 常用網(wǎng)站

go 百科全書: https://awesome-go.com/
json 解析: http://tools.jb51.net/code/jsonformat
出口 IP: https://ipinfo.io/
redis 命令: http://doc.redisfans.com/
ES 命令首頁: https://www.elastic.co/guide/cn/elasticsearch/guide/current/index.html
UrlEncode: http://tools.jb51.net/transcoding/urlencode_decode
Base64: http://tools.jb51.net/transcoding/base64
Guid: https://www.guidgen.com/
常用工具: http://tools.jb51.net/

四. golang 常用庫

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

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

存儲
mysql https://github.com/go-xorm/xormes https://github.com/elastic/elasticsearchredis https://github.com/gomodule/redigomongo https://github.com/mongodb/mongo-go-driverkafka https://github.com/Shopify/sarama

數(shù)據(jù)結(jié)構(gòu)
https://github.com/emirpasic/gods

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

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

并發(fā)
https://github.com/Jeffail/tunnyhttps://github.com/benmanns/goworker現(xiàn)在我們框架在用的,雖然 star 不多,但是確實好用,當然還可以更好用.
https://github.com/rafaeldias/async

工具
定義了實用的判定類,以及針對結(jié)構(gòu)體的校驗邏輯,避免業(yè)務側(cè)寫復雜的代碼.
https://github.com/asaskevich/govalidatorhttps://github.com/bytedance/go-tagexpr

protobuf 文件動態(tài)解析的接口,可以實現(xiàn)反射相關的能力。
https://github.com/jhump/protoreflect

表達式引擎工具
https://github.com/Knetic/govaluatehttps://github.com/google/cel-go

字符串處理
https://github.com/huandu/xstrings

ratelimit 工具
https://github.com/uber-go/ratelimithttps://blog.csdn.net/chenchongg/article/details/85342086https://github.com/juju/ratelimit

golang 熔斷的庫
熔斷除了考慮頻率限制,還要考慮 qps,出錯率等其他東西.
https://github.com/afex/hystrix-gohttps://github.com/sony/gobreaker

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

tail 工具庫
https://github.com/hpcloud/tagl

更多關于GO日常開發(fā)效率神器與常用第三方庫請查看下面的相關鏈接

相關文章

  • 深入理解golang chan的使用

    深入理解golang chan的使用

    本文主要介紹了golang chan的使用,文中通過示例代碼介紹的非常詳細,對大家的學習或者工作具有一定的參考學習價值,需要的朋友們下面隨著小編來一起學習學習吧
    2022-06-06
  • 淺談Go語言多態(tài)的實現(xiàn)與interface使用

    淺談Go語言多態(tài)的實現(xiàn)與interface使用

    如果大家系統(tǒng)的學過C++、Java等語言以及面向?qū)ο蟮脑?,相信應該對多態(tài)不會陌生。多態(tài)是面向?qū)ο蠓懂牣斨薪?jīng)常使用并且非常好用的一個功能,它主要是用在強類型語言當中,像是Python這樣的弱類型語言,變量的類型可以隨意變化,也沒有任何限制,其實區(qū)別不是很大
    2021-06-06
  • goland設置顏色和字體的操作

    goland設置顏色和字體的操作

    這篇文章主要介紹了goland設置顏色和字體的操作方式,具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧
    2021-05-05
  • 一篇文章搞懂Go語言中的Context

    一篇文章搞懂Go語言中的Context

    這篇文章主要介紹了一篇文章搞懂Go語言中的Context,Context攜帶一個截止日期、一個取消信號和其他跨越API邊界的值。上下文的方法可以被多個gor例程同時調(diào)用
    2022-07-07
  • 關于golang 字符串 int uint int64 uint64 互轉(zhuǎn)問題

    關于golang 字符串 int uint int64 uint64&

    這篇文章主要介紹了golang 字符串 int uint int64 uint64 互轉(zhuǎn),本文給大家介紹的非常詳細,對大家的學習或工作具有一定的參考借鑒價值,需要的朋友可以參考下
    2023-01-01
  • Go語言編程通過dwarf獲取內(nèi)聯(lián)函數(shù)

    Go語言編程通過dwarf獲取內(nèi)聯(lián)函數(shù)

    這篇文章主要為大家介紹了Go語言編程通過dwarf獲取內(nèi)聯(lián)函數(shù)詳解,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進步,早日升職加薪
    2022-11-11
  • Go語言開發(fā)k8s之Deployment操作解析

    Go語言開發(fā)k8s之Deployment操作解析

    這篇文章主要為大家介紹了Go語言開發(fā)k8s之Deployment操作解析,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進步,早日升職加薪
    2023-06-06
  • Go語言中sync.Mutex的使用方法

    Go語言中sync.Mutex的使用方法

    本文主要介紹了golang中sync.Mutex的實現(xiàn)方法,mutex主要有兩個 method:Lock()和Unlock(),文中通過示例代碼介紹的非常詳細,對大家的學習或者工作具有一定的參考學習價值,需要的朋友們下面隨著小編來一起學習學習吧
    2023-03-03
  • Go語言中使用反射的方法

    Go語言中使用反射的方法

    這篇文章主要介紹了Go語言中使用反射的方法,實例分析了Go語言實現(xiàn)反射的技巧,具有一定參考借鑒價值,需要的朋友可以參考下
    2015-02-02
  • golang gorm中格式化時間問題詳解

    golang gorm中格式化時間問題詳解

    這篇文章主要給大家介紹了關于golang gorm中格式化時間問題的相關資料,文中通過示例代碼介紹的非常詳細,對大家學習或者使用golang具有一定的參考學習價值,需要的朋友們下面來一起學習學習吧
    2019-07-07

最新評論

达州市| 遂宁市| 鸡西市| 内黄县| 新干县| 广德县| 南江县| 仙桃市| 炉霍县| 石景山区| 英吉沙县| 桦南县| 延长县| 老河口市| 治多县| 红原县| 阜宁县| 比如县| 林西县| 莆田市| 临邑县| 平谷区| 金塔县| 汶川县| 东莞市| 万年县| 莱州市| 乌审旗| 乌拉特后旗| 巴青县| 铅山县| 邵阳县| 青田县| 新晃| 韶关市| 南和县| 邛崃市| 平乐县| 杭锦后旗| 南丹县| 大理市|