We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c58528 commit dac401bCopy full SHA for dac401b
1 file changed
main.go
@@ -110,7 +110,7 @@ func (st *Sorter) sortSpecs(specs []ast.Spec) (results []ast.Spec) {
110
case *ast.ImportSpec:
111
if strings.HasPrefix(im.Path.Value, `"`+st.rootPkg) {
112
appPkg = append(appPkg, im)
113
- } else if isThirdparty(im.Path.Value) {
+ } else if isThirdParty(im.Path.Value) {
114
thirdpartyPkg = append(thirdpartyPkg, im)
115
} else {
116
innerPkg = append(innerPkg, im)
@@ -271,7 +271,7 @@ func deduline(lines []int) []int {
271
272
var thirdPartRegex = regexp.MustCompile(`^"([0-9a-zA-Z]+\.)+[0-9a-zA-Z]+(/.+)+"$`)
273
274
-func isThirdparty(path string) bool {
+func isThirdParty(path string) bool {
275
return thirdPartRegex.MatchString(path)
276
}
277
0 commit comments