templates

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package templates contains a compilation of go templates for rendering secret findings.

Index

Constants

View Source
const DefaultTemplate = `` /* 134-byte string literal not displayed */

DefaultTemplate is the base template used to format a Finding into the custom output format.

Variables

View Source
var (
	//go:embed simple.tmpl
	Simple string

	//go:embed html.tmpl
	HTML string

	//go:embed markdown.tmpl
	Markdown string

	//go:embed table.tmpl
	Table string

	//go:embed html-table.tmpl
	HTMLTable string
)

Functions

func Render

func Render(w io.Writer, tpl string, findings []report.Finding) error

Render renders a finding in a custom go template format to the provided writer.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL