gotmpl

package
v0.10.0-test2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseExec

func ParseExec(pos *model.ConfigPos, tmpl string, scope *common.Scope) (string, error)

pos may be nil if the template is not coming from the spec file and therefore there's no reason to print out spec file location in an error message. If template execution fails because of a missing input variable, the error will be wrapped in a UnknownVarErr.

func ParseExecAll

func ParseExecAll(ss []model.String, scope *common.Scope) ([]string, error)

ParseExecAll runs ParseExec on each of the input strings (which should contain Go templates).

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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