github.com/songshiyun/revive@v1.1.5-0.20220323112655-f8433a19b3c5/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 }