Documentation
¶
Index ¶
- Constants
- Variables
- func Badge(score int) []string
- func Close(w io.Writer)
- func Colorize(s string, c Color) string
- func Comment(w io.Writer, msg string)
- func Dump(w io.Writer, l linter.Level, issues ...linter.Issue)
- func EmojiForLevel(l linter.Level) string
- func Error(w io.Writer, msg string, err error)
- func Grade(score int) string
- func Open(w io.Writer, s string, t *Tally)
- func TitleForRes(r string) string
- func Write(w io.Writer, l linter.Level, indent int, msg string)
- type Color
- type Tally
Constants ¶
View Source
const (
// FontBold style
FontBold = 1
)
Variables ¶
View Source
var Logo = []string{
"K .-'-. ",
" 8 __| `\\ ",
" s `-,-`--._ `\\",
" [] .->' a `|-'",
" `=/ (__/_ / ",
" \\_, ` _) ",
" `----; | ",
}
Logo popeye
View Source
var Popeye = []string{
` ___ ___ _____ _____ `,
`| _ \___| _ \ __\ \ / / __|`,
`| _/ _ \ _/ _| \ V /| _| `,
`|_| \___/_| |___| |_| |___|`,
}
Popeye title
Functions ¶
func EmojiForLevel ¶
EmojiForLevel maps lint levels to emojis.
func TitleForRes ¶
TitleForRes returns a human readable resource name.
Types ¶
type Color ¶
type Color int
Color tracks the output color.
const ( ColorOrangish Color = 220 ColorOrange Color = 208 ColorGray Color = 250 ColorWhite Color = 15 ColorBlue Color = 105 ColorRed Color = 196 ColorCoolBlue Color = 99 ColorAqua Color = 122 ColorDarkOlive Color = 155 ColorLighSlate Color = 75 // 105 ColorYellow Color = 226 ColorYellow2 Color = 190 ColorGreenPale Color = 114 ColorGreen Color = 82 )
Color ANSI palette (256!)
Click to show internal directories.
Click to hide internal directories.