An open API service indexing awesome lists of open source software.

https://github.com/rogpeppe/sortimports

sortimports - a command to sort import paths in Go files.
https://github.com/rogpeppe/sortimports

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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.