parse

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: BSD-3-Clause Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SyntaxWarningStats   = "syntax-warnings"
	SyntaxErrorStats     = "syntax-errors"
	RuntimeWarningsStats = "runtime-warnings"
)

Variables

View Source
var (
	ExecuterOptions protocols.ExecuterOptions
)
View Source
var (
	ShouldValidate bool
)

Functions

func InitExecuterOptions

func InitExecuterOptions(rate int, timeout int)

func LoadTemplate

func LoadTemplate(templatePath string, tagFilter *filter.TagFilter, extraTags []string, Pocs embed.FS) (bool, error)

LoadTemplate returns true if the template is valid and matches the filtering criteria.

func ParsePoc

func ParsePoc(filename string, Pocs embed.FS) (*templates.Template, error)

func ParseTemplate

func ParseTemplate(templatePath string, Pocs embed.FS) (*templates.Template, error)

ParseTemplate parses a template and returns a *templates.Template structure

Types

This section is empty.

Jump to

Keyboard shortcuts

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