Documentation ¶
Index ¶
- func ArrowLeftDark() template.HTML
- func ArrowLeftLight() template.HTML
- func ArrowRightDark() template.HTML
- func ArrowRightLight() template.HTML
- func ExternalIcon() template.HTML
- func FileIcon() template.HTML
- func GenerateSecurityNonce() (string, error)
- func GetProductIcon(p product.Product) template.HTML
- func GetProductIconDisabled(p product.Product) template.HTML
- func GitHubIcon() template.HTML
- func IdxMinusOne(n int) int
- func LessonIcon() template.HTML
- func MarkdownToHTML(md string) template.HTML
- func ScanAnimation() template.HTML
- func SeverityIcon(issue snyk.Issue) template.HTML
- func TrimCWEPrefix(cwe string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrowLeftDark ¶
func ArrowLeftLight ¶
func ArrowRightDark ¶
func ArrowRightLight ¶
func ExternalIcon ¶
func GenerateSecurityNonce ¶
GenerateSecurityNonce generates a cryptographically secure random nonce. A nonce is used in the web browser's Content Security Policy (CSP) to allow specific inline styles and scripts, helping to prevent Cross-Site Scripting (XSS) attacks.
func GitHubIcon ¶
func IdxMinusOne ¶
func LessonIcon ¶
func MarkdownToHTML ¶
func ScanAnimation ¶
func TrimCWEPrefix ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.