FREEDOM251

Freedom251 › Compare

Side by side

dprint vs goimports

Both stand on code formatting tools. Which one you can start free with, which one lets you read the code, and what each costs once you pay.

dprint

Free plan ExtensionLinuxMac+2

dprint combines broad language coverage with configurable plugins, editor integrations, and CI options. Its process plugins do not run in a sandbox, unlike its WebAssembly plugins.

Visit dprint

goimports

Free plan LinuxMacWeb+1

goimports combines import cleanup with gofmt-style formatting and can fit into several documented editor workflows. Its directory exclusions use a deliberately limited file format, and the package page notes that its listed version is not the latest in its module.

Visit goimports

The facts

dprintgoimports
Free planYesYes
Open sourceNot publishedNot published
Runs onExtension, Linux, Mac, Self-hosted, WindowsLinux, Mac, Web, Windows
Lowest paid planFree or on requestFree or on request
Plans published11
MakerNot publishedNot published
Websitedprint.devpkg.go.dev
On code formatting tools#6 of 34#10 of 34

dprint: what it does well

  • Supports many languages and formats.
  • Wasm plugins are sandboxed from network and file system.
  • Editor integrations include Visual Studio Code, IntelliJ, and Neovim.
  • Static CLI has no runtime dependencies.
  • Free and MIT-licensed.

What to know first

  • Process plugins are not sandboxed.
  • It is a command-line application.

goimports: what it does well

  • Adds missing imports and removes unreferenced ones.
  • Formats code in the gofmt style.
  • Documented integrations include Emacs, Vim, and GoSublime.
  • Free, redistributable, and licensed under BSD-3-Clause.

What to know first

  • Ignore files do not support globbing or regular expressions.
  • The listed package version is not the latest in its module.

Alternatives to dprint Alternatives to goimports The whole list