Documentation
¶
Index ¶
- Variables
- func Bold(format string, args ...interface{})
- func DisableColors()
- func EnableColors()
- func Error(format string, args ...interface{})
- func FormatDR(dr *int) string
- func FormatLinkType(linkType string) string
- func FormatPricing(pricing string) string
- func Info(format string, args ...interface{})
- func Muted(format string, args ...interface{})
- func Success(format string, args ...interface{})
- func TruncateString(s string, maxLen int) string
- func Warning(format string, args ...interface{})
- type Table
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Color schemes SuccessColor = color.New(color.FgGreen, color.Bold) ErrorColor = color.New(color.FgRed, color.Bold) WarningColor = color.New(color.FgYellow, color.Bold) InfoColor = color.New(color.FgCyan) MutedColor = color.New(color.FgHiBlack) BoldColor = color.New(color.Bold) // DR (Domain Rating) color thresholds HighDRColor = color.New(color.FgGreen) MediumDRColor = color.New(color.FgYellow) LowDRColor = color.New(color.FgRed) )
Functions ¶
func FormatLinkType ¶
FormatLinkType formats link type with color
func FormatPricing ¶
FormatPricing formats pricing type with color
func TruncateString ¶
TruncateString truncates a string to maxLen
Types ¶
Click to show internal directories.
Click to hide internal directories.