package
0.0.0-20230620015642-8705ae581d71
Repository: https://github.com/rohitramu/kpm.git
Documentation: pkg.go.dev
# Functions
AddPackageSpecificTemplateFunctions adds the package-specific template functions for the given template.
ChainTemplatesFromDir returns a single template which contains all of the templates that were found in the given directory.
ExecuteNamedTemplate executes a named template that can be found in the provided template.
ExecuteTemplate executes a template given the template object and the values.
FromYamlFunc converts yaml strings to objects.
GetGlobalFuncMap returns the template functions which can be used in any context.
GetIncludeFunc creates a new instance of the Include function, which allows helper templates to be executed so their output can be used in other functions.
GetPackageFuncMap returns the template functions which can be used only in the context of a particular template.
GetTemplateFromFile returns a new template object given a template file.
GetTemplatesFromDir returns an array containing all of the templates found in the given directory.
IndexFunc gets a single value from a generic map (of any depth), given an ordered list of keys.
NewRootTemplate returns a new root template with options and functions provided.
ToYamlFunc converts objects to yaml strings.
# Constants
FuncNameFromYaml is the name of the template function which converts yaml strings to objects.
FuncNameInclude is the name of the "include" template function.
FuncNameIndex is the name of the "index" template function.
FuncNameToYaml is the name of the template function which converts objects to yaml strings.