rogpeppe / sortimports

sortimports - a command to sort import paths in Go files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sortimports

Command sortimports sorts import sections of Go files.

It sorts imports into three sections: standard library, external imports and module-local imports.

Usage:

sortimports [-n] [package...]

It operates on the named packages (the current package . by default).

The -n flag causes it to show which files it would have changed without actually changing them.

About

sortimports - a command to sort import paths in Go files.

License:GNU General Public License v2.0


Languages

Language:Go 100.0%