EVERYTHING XIAOMI
Get listed
Side by side

gofmt vs rustfmt

gofmt

6.1#10 in code formattersFree plan
Free planLinuxmacOSWindows
Visit

rustfmt

6.7#2 in code formattersFree plan
Free planLinuxmacOSWindows
Visit

What both publish

Factgofmtrustfmt
Editor integrationsThe 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.
LicenseGo is an open source project distributed under a BSD-style license.rustfmt is distributed under both the MIT License and Apache License 2.0.
PurposeGofmt automatically formats Go programs using tabs for indentation and blanks for alignment.rustfmt formats Rust code according to style guidelines.
SupportQuestions 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 plans

  • gofmtFree

rustfmt plans

  • rustfmtFree

Pick gofmt if…

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.

Pick rustfmt if…

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.

Charts they share