Documentation ¶
Index ¶
- func GetTemplateByBytes(name string, data map[string]interface{}) ([]byte, error)
- func GetTemplateByString(name string, data map[string]interface{}) (string, error)
- func IsCommandAvailable(cmd string) bool
- func LoadTemplates(files embed.FS) error
- func NewTemplateByString(format string, data map[string]interface{}) (string, error)
- type Data
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTemplateByBytes ¶
GetTemplateByBytes returns the parsed template as a byte.
func GetTemplateByString ¶
GetTemplateByString returns the parsed template as a string.
func IsCommandAvailable ¶
IsCommandAvailable checks whether a command is available in the PATH.
func LoadTemplates ¶
LoadTemplates loads all the templates found in the templates directory.
Types ¶
Click to show internal directories.
Click to hide internal directories.