CodeTools

mbaginskiytf edited this page Nov 23, 2017 · 12 revisions

An overview of tools that will help improve your Go code

All-in-one

  • gometalinter - Automates the installation, configuration and application of gofmt, golint, govet and several other code validation tools.

Code Formatting

Articles

Tools

  • gofmt - Start with the standard Go code formatter
  • golint - Detects style mistakes in Go code
  • goimports - Format code and fix your import statements

Code generation, Templating and Generics

  • json-to-go - Generate Go structs from JSON.
  • Go gen - Type-driven code generation (generics)
  • gojson - Another Go struct generator.
  • gonerics.io - Idiomatic Generics in Go
  • gotemplate - Package-based templating system for Go
  • sqlgen - Generate Go code for SQL interactions.

Refactoring

Articles

Tools

  • eg - Example-based refactoring tool for Go
  • gofmt - Start with the standard Go code formatter
  • gorename - Renaming tool for Go

Error Detection

Articles

Tools

Navigation

Visualization

  • godegraph - A tool for generating dependency graphs of Go code.
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.