template

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: GPL-3.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract added in v0.0.137

func Extract(namekey string) (string, string, error)

func Fetch added in v0.1.4

func Fetch(format contracts.Format, name string, client *client.Http, user *authentication.User) ([]byte, f.Format, error)

func Lookup added in v0.0.137

func Lookup(placeholder string, client *client.Http, user *authentication.User, runtime *smaps.Smap, dependencies []f.Format, depth int) (string, error)

func Parse added in v0.0.137

func Parse(name string, value string, client *client.Http, user *authentication.User, runtime *smaps.Smap, depth int) (string, []f.Format, error)

Types

type Template added in v0.0.137

type Template struct {
	Name      string
	Templated string
	Values    Variables
	Functions template.FuncMap
}

func New added in v0.0.137

func New(name string, tmpl string, values Variables, functions template.FuncMap) Template

func (Template) Parse added in v0.0.137

func (tmpl Template) Parse(left string, right string) (string, error)

type Variables added in v0.0.137

type Variables struct {
	Values map[string]interface{}
}

Jump to

Keyboard shortcuts

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