Skip to content

Commit dac401b

Browse files
author
wuguangxue
committed
typo
1 parent 0c58528 commit dac401b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func (st *Sorter) sortSpecs(specs []ast.Spec) (results []ast.Spec) {
110110
case *ast.ImportSpec:
111111
if strings.HasPrefix(im.Path.Value, `"`+st.rootPkg) {
112112
appPkg = append(appPkg, im)
113-
} else if isThirdparty(im.Path.Value) {
113+
} else if isThirdParty(im.Path.Value) {
114114
thirdpartyPkg = append(thirdpartyPkg, im)
115115
} else {
116116
innerPkg = append(innerPkg, im)
@@ -271,7 +271,7 @@ func deduline(lines []int) []int {
271271

272272
var thirdPartRegex = regexp.MustCompile(`^"([0-9a-zA-Z]+\.)+[0-9a-zA-Z]+(/.+)+"$`)
273273

274-
func isThirdparty(path string) bool {
274+
func isThirdParty(path string) bool {
275275
return thirdPartRegex.MatchString(path)
276276
}
277277

0 commit comments

Comments
 (0)