• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

formatter-gofmt

Formatter for Golang.
  • #formatter
  • #golang
  • #go
  • #gofmt
  • #format
gouvinb
1.0.1 9,690
3
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

formatter-gofmt

Formatter for Golang.

This Formatter plugin for Formatter provides an interface to gofmt.

Installation

  1. Install Golang

  2. Install Formatter package via Atom

    • or with apm install formatter
  3. Install formatter-gofmt package via Atom

    • or with apm install formatter-gofmt

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

TODO

  • [ ] optimize enable config
  • [ ] cursor position
  • [ ] more optimization ?

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

See LICENSE.md

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by