format

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 10 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateReportDescription

func CreateReportDescription(event *output.ResultEvent, formatter ResultFormatter) string

func CreateTemplateInfoTable

func CreateTemplateInfoTable(templateInfo *model.Info, formatter ResultFormatter) string

func GetMatchedTemplateName

func GetMatchedTemplateName(event *output.ResultEvent) string

GetMatchedTemplateName returns the matched template name from a result event together with the found matcher and extractor name, if present

func Summary

func Summary(event *output.ResultEvent) string

Summary returns a formatted built one line summary of the event

Types

type ResultFormatter

type ResultFormatter interface {
	MakeBold(text string) string
	CreateCodeBlock(title string, content string, language string) string
	CreateTable(headers []string, rows [][]string) (string, error)
	CreateLink(title string, url string) string
	CreateHorizontalLine() string
}

Jump to

Keyboard shortcuts

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