gofmt
6.1#10 in code formattersFree planFree planLinuxmacOSWindows
Visit| Fact | gofmt | rustfmt |
|---|---|---|
| Editor integrations | The Go project documents gofmt integrations for Vim, Emacs, Eclipse, Sublime Text, Git pre-commit hooks, and Mercurial. | The README lists integrations or usage instructions for Vim, Emacs, Sublime Text 3, Atom, Visual Studio Code, and IntelliJ or CLion. |
| License | Go is an open source project distributed under a BSD-style license. | rustfmt is distributed under both the MIT License and Apache License 2.0. |
| Purpose | Gofmt automatically formats Go programs using tabs for indentation and blanks for alignment. | rustfmt formats Rust code according to style guidelines. |
| Support | Questions about using Go or announcements relevant to Go users should be sent to the golang-nuts mailing list. | The README points users to `rustfmt --help` and `cargo fmt --help` for command usage and arguments. |
gofmt suits Go developers who want consistent formatting from the command line or an editor integration. It can also fit workflows that use Git pre-commit hooks or Mercurial.
rustfmt suits Rust developers who want consistent formatting through Cargo, an editor, or CI. It is also relevant to developers who need configurable formatting behavior.