github.com/Johnny2210/revive@v1.0.8-0.20210625134200-febf37ccd0f5/lint/formatter.go (about)

     1  package lint
     2  
     3  // FormatterMetadata configuration of a formatter
     4  type FormatterMetadata struct {
     5  	Name        string
     6  	Description string
     7  	Sample      string
     8  }
     9  
    10  // Formatter defines an interface for failure formatters
    11  type Formatter interface {
    12  	Format(<-chan Failure, Config) (string, error)
    13  	Name() string
    14  }