Skip to content

CodeTools

Auke Willem Oosterhoff edited this page Oct 17, 2016 · 38 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