go-imports-sorter
VSCode extension for separating imports in Go files into following groups:
- Standard library imports
- Third party imports
- Own library (belonging to the organization) imports.
- Self imports (import current project packages).
VSCode extension for separating imports in go files into groups: standard, 3rd party, same domain, current project.
Extension Settings
groupImports.onSave : automatically group imports on save. Default value is true .
Notes
Last Update
- feat: create an output channel to display grouped imports and formatted imports
- feat: support single line and multi line comments in import block
- fix: append slash before compare path, to detect own package name contains apart of root package (such like abc.org/pine and abc.org/pineapple)
- fix: detect root package when file patch and GOPATH in different drive in windows
- feat: support windows line ending
| |