A collection of tools and libraries for working with Go code, including linters and static analysis:
https://github.com/dominikh/go-tools
Tool | Description |
---|---|
gosimple | Detects code that could be rewritten in a simpler way. |
keyify | Transforms an unkeyed struct literal into a keyed one. |
rdeps | Find all reverse dependencies of a set of packages |
staticcheck | Detects a myriad of bugs and inefficiencies in your code. |
structlayout | Displays the layout (field sizes and padding) of structs. |
structlayout-optimize | Reorders struct fields to minimize the amount of padding. |
structlayout-pretty | Formats the output of structlayout with ASCII art. |
unused | Reports unused identifiers (types, functions, …) in your code. |
megacheck | Run staticcheck, gosimple and unused in one go |
Libraries
In addition to the aforementioned tools, this repository contains the libraries necessary to implement these tools.
There is no ads to display, Please add some