Documentation ¶
Index ¶
- func Debug(message string, v ...any)
- func Error(message string, v ...any)
- func ExecuteTemplate(tplData map[string]interface{}, tpl *template.Template) []byte
- func Info(message string, v ...any)
- func LoadYMLFromBytes(content []byte, obj interface{})
- func LoadYMLFromFile(filename string, obj interface{})
- func ParseTemplate(file string) *template.Template
- func SetVerbose()
- func UpdateAndGetMapElementByPath(structure map[string]interface{}, keyPath []string) map[string]interface{}
- func Warn(message string, v ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteTemplate ¶
Executes a template with the provided data.
func LoadYMLFromBytes ¶
func LoadYMLFromBytes( content []byte, obj interface{}, )
Loads yml data from a byte array.
func LoadYMLFromFile ¶
func LoadYMLFromFile( filename string, obj interface{}, )
Loads yml data from a file.
func ParseTemplate ¶
Parses a template defined in a file.
func UpdateAndGetMapElementByPath ¶
func UpdateAndGetMapElementByPath( structure map[string]interface{}, keyPath []string, ) map[string]interface{}
Returns the map specified by path If the path does not exist it will be created Returns nil if the element referenced by path is not a map.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.