gofmt fixer for Go (#970)

Add a gofmt fixer for golang.
This commit is contained in:
aliou
2017-10-03 19:54:35 +02:00
committed by w0rp
parent 3ab414de1a
commit e376f0ae44
6 changed files with 74 additions and 0 deletions
+5
View File
@@ -92,6 +92,11 @@ let s:default_registry = {
\ 'suggested_filetypes': ['c', 'cpp'],
\ 'description': 'Fix C/C++ files with clang-format.',
\ },
\ 'gofmt': {
\ 'function': 'ale#fixers#gofmt#Fix',
\ 'suggested_filetypes': ['go'],
\ 'description': 'Fix Go files with go fmt.',
\ },
\}
" Reset the function registry to the default entries.