This package provides the following services:
formatter-gofmt
Formatter for Golang.
This Formatter plugin for Formatter provides an interface to gofmt.
Installation
-
Install Golang
-
Install Formatter package via Atom
- or with
apm install formatter
- or with
-
Install formatter-gofmt package via Atom
- or with
apm install formatter-gofmt
- or with
Usage
In your source compatible file
Default (inspired from IntelliJ):
'atom-text-editor':
'alt-ctrl-l': 'formatter:format-code'
'alt-cmd-l': 'formatter:format-code'
List of config
-
Path to the exectuable
- Full path gofmt
-
Go language
-
Enable formatter for Go language (need restart Atom)
-
Arguments passed to the formatter Go language
- Example :
-s, -r
- Example :
-
TODO
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request 😄
License
See LICENSE.md