github.com/daixiang0/gci@v0.13.0/pkg/section/commentline.go (about) 1 package section 2 3 import ( 4 "fmt" 5 6 "github.com/daixiang0/gci/pkg/parse" 7 "github.com/daixiang0/gci/pkg/specificity" 8 ) 9 10 type CommentLine struct { 11 Comment string 12 } 13 14 func (c CommentLine) MatchSpecificity(spec *parse.GciImports) specificity.MatchSpecificity { 15 return specificity.MisMatch{} 16 } 17 18 func (c CommentLine) String() string { 19 return fmt.Sprintf("commentline(%s)", c.Comment) 20 } 21 22 func (c CommentLine) Type() string { 23 return "commentline" 24 }