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.
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 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 goimportsThe facts
| dprint | goimports | |
|---|---|---|
| Free plan | Yes | Yes |
| Open source | Not published | Not published |
| Runs on | Extension, Linux, Mac, Self-hosted, Windows | Linux, Mac, Web, Windows |
| Lowest paid plan | Free or on request | Free or on request |
| Plans published | 1 | 1 |
| Maker | Not published | Not published |
| Website | dprint.dev | pkg.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