forked from incu6us/goimports-reviser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
doc.go
35 lines (35 loc) · 779 Bytes
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Tool for Golang to sort goimports by 3-4 groups: std, general, local(which is optional) and project dependencies.
// It will help you to keep your code cleaner.
//
// Example:
// goimports-reviser -project-name github.com/incu6us/goimports-reviser -file-path ./reviser/reviser.go -rm-unused
//
// Input:
// import (
// "log"
//
// "github.com/incu6us/goimports-reviser/testdata/innderpkg"
//
// "bytes"
//
// "golang.org/x/exp/slices"
// )
//
// Output:
//
// import (
// "bytes"
// "log"
//
// "golang.org/x/exp/slices"
//
// "github.com/incu6us/goimports-reviser/testdata/innderpkg"
// )
//
// If you need to set package names explicitly(in import declaration), you can use additional option `-set-alias`.
//
// More:
//
// goimports-reviser -h
//
package main