render

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActionHandler

func ActionHandler(ctx context.Context, config interface{}, data map[string]interface{}) (map[string]interface{}, error)

func GenericFuncMap

func GenericFuncMap() map[string]interface{}

func Render

func Render(src string, data map[string]interface{}) (string, error)

func TxtFuncMap

func TxtFuncMap() template.FuncMap

Types

type ActionHandlerConfig

type ActionHandlerConfig struct {
	Src       string
	Dst       string
	CreateDir bool `mapstructure:"create_dir" default:"true"`
}

Jump to

Keyboard shortcuts

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