github.com/daixiang0/gci@v0.13.0/pkg/specificity/standard.go (about)

     1  package specificity
     2  
     3  type StandardMatch struct{}
     4  
     5  func (s StandardMatch) IsMoreSpecific(than MatchSpecificity) bool {
     6  	return isMoreSpecific(s, than)
     7  }
     8  
     9  func (s StandardMatch) Equal(to MatchSpecificity) bool {
    10  	return equalSpecificity(s, to)
    11  }
    12  
    13  func (s StandardMatch) class() specificityClass {
    14  	return StandardClass
    15  }
    16  
    17  func (s StandardMatch) String() string {
    18  	return "Standard"
    19  }