functions

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 14 Imported by: 7

Documentation

Overview

Package functions contains custom functions specific to korvike and returns the sprig functions with added korvike specific functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFunctionMap

func GetFunctionMap() template.FuncMap

GetFunctionMap exports all functions used in korvike to be used in own projects Example:

import korvike "github.com/Luzifer/korvike"
tpl := template.New("mytemplate").Funcs(korvike.GetFunctionMap())

func SetSubTemplateVariables added in v0.11.0

func SetSubTemplateVariables(m map[string]interface{})

SetSubTemplateVariables sets variables to apply in `tplexec` function

Types

This section is empty.

Jump to

Keyboard shortcuts

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