Documentation
¶
Overview ¶
Package note renders a module's Note for the terminal or as JSON.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sanitize ¶
Sanitize neutralizes control/ANSI sequences and caps length on any string that may originate from untrusted input (a hostile API response or a malicious variable name), so it can't hijack the terminal. Exported for callers that print note-derived text outside Text/JSON (e.g. the summary).
func Text ¶
Text renders a Note as the short human-readable block (summarized: a finding's Detail expansion is omitted).
func TextVerbose ¶
TextVerbose renders a Note and expands each finding's Detail (e.g. the full list of files a secret was also found in) as indented lines beneath it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.