gosquashimports

command module
v0.0.0-...-9e08a9c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2021 License: MIT Imports: 11 Imported by: 0

README

There is an annoying issue with IntelliJ IDEA and Go related to imports: IDEA automatically adds new imports, but often separates them with an empty line or adds to another import group (import group here is a bunch of imports separated with an empty line). Subsequent run of goimports doesn't help, because it doesn't join import groups.

This is a simple tool which is intended to be run before goimports: it simply joins all import groups. The subsequent run of goimports makes them more pretty by splitting them to standard three groups: standard library, foreign and local packages.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL