Golang 开发工具栈
⬅︎ 返回上层
TOC
其他
- https://awesome-go.com/
- sprig: Useful template functions for Go templates
- gore: Go REPL
- https://tmc.github.io/json-to-struct/ : JSON 转 Go Struct
开发必备
- https://pkg.go.dev
- gopls: an LSP server for Go
- godef: find symbol information in Go source
- golint: Linter,格式固定唯一,不可扩展
- golangci-lint: 易扩展的 Linter。配合 golint 一起使用。
- goimports:
go get golang.org/x/tools/cmd/goimports
. 自动化加入 import,或去除 import 里未使用的包。同时也会自动格式化代码,类似 gofmt。
- gofmt: 格式化代码用
- stringer:
String()
方法的代码生成器
Cheatsheet
- https://github.com/a8m/golang-cheat-sheet
Logger
错误处理
结构化数据处理
JSON
- gjson: JSON parser for Go
CLI
测试
HTTP
- mux: a request router and dispatcher
容器
⬆ 返回顶部