Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
awesome-go-code-formatters
A curated list of Go code formatters (like gofmt)
https://github.com/life4/awesome-go-code-formatters
Last synced: 2 days ago
JSON representation
-
Code formatters
- gofmt - - the default built-in formatter.
- keyify - - turns unkeyed struct literals into keyed ones.
- go-ruleguard - - analysis-based formatter based on custom rules.
- gofumpt - - a stricter gofmt.
- golines - - fixes long lines.
- go-parsefix - - fixes simple parse errors.
- goreturns - - fills in return statements with zero values to match the func return types.
- unconvert - - removes unnecessary type conversions.
- structslop - - checks struct can be re-arranged fields to get optimal struct size (can reduce memory use in large collections of struct instances) -- [Medium article here](https://medium.com/orijtech-developers/efficient-struct-packing-guided-pass-for-go-92255872ec72).
- gofmt - - the default built-in formatter.
-
Imports formatters
- goimports - - adds missing imports and removes unused ones.
- dedupimport - - fixes duplicate named/unnamed imports that have the same import path
- gci - - controls package import order and make it always deterministic.
- goimports-reviser - - goimports alternative.
-
Code generators
- stringer - - generates string representation for integer constants.
-
See also
Sub Categories
Keywords
go
7
golang
6
awesome
3
awesome-list
3
gofmt
3
goimports
2
static-analysis
2
linter
2
style
1
idiomatic
1
format
1
semgrep
1
ruleguard
1
gogrep
1
go-analysis
1
dynamic-rules
1
codeql
1
analysis
1
yapf
1
styleguide
1
qa
1
pythonic
1
python3
1
python
1
isort
1
formatting
1
formatter
1
code-formatter
1
black
1
autopep8
1
sort-goimports
1
goimports-reviser
1
ast
1
utility
1
tools
1
parsing
1
autofix
1
golang-library
1