A collection of tools and libraries for working with Go code, including linters and static analysis:
|Detects code that could be rewritten in a simpler way.
|Transforms an unkeyed struct literal into a keyed one.
|Find all reverse dependencies of a set of packages
|Detects a myriad of bugs and inefficiencies in your code.
|Displays the layout (field sizes and padding) of structs.
|Reorders struct fields to minimize the amount of padding.
|Formats the output of structlayout with ASCII art.
|Reports unused identifiers (types, functions, …) in your code.
|Run staticcheck, gosimple and unused in one go
In addition to the aforementioned tools, this repository contains the libraries necessary to implement these tools.