Documentation
¶
Index ¶
- Constants
- func ColorText(text string, color StdOutColor) string
- func CreateLinesMapForFiles(files map[string][]byte) map[string]map[int]string
- func FormatCheckResult(res analyzer.CheckResult, fileLinesMap map[string]map[int]string) string
- func FormatSpecError(specError analyzer.SpecError, fileLinesMap map[string]map[int]string) string
- type StdOutColor
Constants ¶
View Source
const Reset string = "\033[0m"
Variables ¶
This section is empty.
Functions ¶
func ColorText ¶
func ColorText(text string, color StdOutColor) string
func CreateLinesMapForFiles ¶
CreateLinesMapForFiles creates a map of file paths to line maps. It takes in a map of file paths to file content.
func FormatCheckResult ¶
Types ¶
type StdOutColor ¶
type StdOutColor string
const ( Red StdOutColor = "\033[31m" Green StdOutColor = "\033[32m" Yellow StdOutColor = "\033[33m" Blue StdOutColor = "\033[34m" Purple StdOutColor = "\033[35m" Cyan StdOutColor = "\033[36m" Gray StdOutColor = "\033[37m" White StdOutColor = "\033[97m" )
Click to show internal directories.
Click to hide internal directories.