Versions in this module Expand all Collapse all v1 v1.0.0 Jul 27, 2025 Changes in this version + const Blue + const Bold + const BrightBlue + const BrightCyan + const BrightGreen + const BrightMagenta + const BrightRed + const BrightWhite + const BrightYellow + const Cyan + const Dim + const Gray + const Green + const Magenta + const Red + const Reset + const White + const Yellow + func IsTerminal() bool + func Render(entries []*Entry, layout []LayoutLine, totalResults, shownResults int) string + func RenderDetailed(entry *Entry, colors *ColorConfig) string + func RenderWithColors(entries []*Entry, layout []LayoutLine, totalResults, shownResults int, ...) string + type ColorConfig struct + Arrow string + Critical string + CveID string + Enabled bool + Error string + Footer string + High string + Info string + Label string + Low string + Medium string + Metric string + Number string + Separator string + Success string + Tag string + Title string + Unknown string + Value string + Warning string + func DefaultColorConfig() *ColorConfig + func NoColorConfig() *ColorConfig + func (c *ColorConfig) ColorAgeUrgency(ageInDays int) string + func (c *ColorConfig) ColorArrow(arrow string) string + func (c *ColorConfig) ColorBoolean(checkmark string) string + func (c *ColorConfig) ColorCVEID(cveID string) string + func (c *ColorConfig) ColorCVSSScore(score float64) string + func (c *ColorConfig) ColorEPSSScore(score float64) string + func (c *ColorConfig) ColorExploitAvailability(available bool, pocCount int, kevStatus bool) string + func (c *ColorConfig) ColorExposure(exposure string) string + func (c *ColorConfig) ColorFooter(footer string) string + func (c *ColorConfig) ColorKEVStatus(isKEV bool) string + func (c *ColorConfig) ColorLabel(label string) string + func (c *ColorConfig) ColorMetric(metric string) string + func (c *ColorConfig) ColorNumber(number string) string + func (c *ColorConfig) ColorResultSeparator(separator string) string + func (c *ColorConfig) ColorSeparator(separator string) string + func (c *ColorConfig) ColorSeverity(severity string) string + func (c *ColorConfig) ColorTag(tag string) string + func (c *ColorConfig) ColorTitle(title string) string + func (c *ColorConfig) ColorValue(value string) string + func (c *ColorConfig) Colorize(text, color string) string + func (c *ColorConfig) ColorizeFormattedLine(line string, lineNum int) string + type Entry struct + AffectedProducts []*cvemap.ProductInfo + AgeInDays int + Author []string + Citations []*cvemap.Citation + CvssScore float64 + Description string + DocID string + EpssScore float64 + Exposure *cvemap.VulnExposure + H1 *cvemap.H1Stats + Impact string + IsKev bool + IsPatchAvailable bool + IsTemplate bool + Kev []*cvemap.KevInfo + Name string + PocCount int + Pocs []*cvemap.POC + Remediation string + Severity string + Tags []string + TemplateRaw string + TemplateURI string + func FromVulnerability(v *cvemap.Vulnerability) *Entry + type LayoutLine struct + Format string + Line int + OmitIf []string + func ParseLayout(layoutJSON []byte) ([]LayoutLine, error)