template

package
v1.32.1-1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compile added in v1.5.1

func Compile(s string) (*template.Template, error)

func Execute added in v1.5.1

func Execute(s string, input interface{}) (string, error)

func ExecuteTemplate added in v1.5.1

func ExecuteTemplate(tpl *template.Template, input interface{}) (string, error)

func Render added in v1.26.0

func Render(s string, art *Artifact, rt *runtime.Runtime) (string, error)

func RenderTemplate added in v1.26.0

func RenderTemplate(tpl *template.Template, art *Artifact, rt *runtime.Runtime) (string, error)

Types

type Artifact added in v1.26.0

type Artifact struct {
	Version string
	SemVer  string
	OS      string
	Arch    string
	Format  string
	Asset   string
}

Jump to

Keyboard shortcuts

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