github.com/daixiang0/gci@v0.13.0/pkg/specificity/name.go (about) 1 package specificity 2 3 type NameMatch struct{} 4 5 func (n NameMatch) IsMoreSpecific(than MatchSpecificity) bool { 6 return isMoreSpecific(n, than) 7 } 8 9 func (n NameMatch) Equal(to MatchSpecificity) bool { 10 return equalSpecificity(n, to) 11 } 12 13 func (n NameMatch) class() specificityClass { 14 return NameClass 15 } 16 17 func (n NameMatch) String() string { 18 return "Name" 19 }