github.com/daixiang0/gci@v0.13.0/pkg/section/newline.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 newLineName = "newline"
     9  
    10  type NewLine struct{}
    11  
    12  func (n NewLine) MatchSpecificity(spec *parse.GciImports) specificity.MatchSpecificity {
    13  	return specificity.MisMatch{}
    14  }
    15  
    16  func (n NewLine) String() string {
    17  	return newLineName
    18  }
    19  
    20  func (n NewLine) Type() string {
    21  	return newLineName
    22  }