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.
- Host: GitHub
- URL: https://github.com/rogpeppe/sortimports
- Owner: rogpeppe
- License: gpl-2.0
- Created: 2014-07-14T13:03:47.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2022-03-08T07:56:24.000Z (about 3 years ago)
- Last Synced: 2025-03-01T11:34:50.137Z (3 months ago)
- Language: Go
- Size: 13.7 KB
- Stars: 10
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.