github.com/daixiang0/gci@v0.13.0/pkg/section/default.go (about) 1 package section 2 3 import ( 4 "github.com/daixiang0/gci/pkg/parse" 5 "github.com/daixiang0/gci/pkg/specificity" 6 ) 7 8 const DefaultType = "default" 9 10 type Default struct{} 11 12 func (d Default) MatchSpecificity(spec *parse.GciImports) specificity.MatchSpecificity { 13 return specificity.Default{} 14 } 15 16 func (d Default) String() string { 17 return DefaultType 18 } 19 20 func (d Default) Type() string { 21 return DefaultType 22 }