util

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTemplate

func GetTemplate(name string, data map[string]interface{}) (string, error)

GetTemplate returns the parsed template as a string.

func IsCommandAvailable

func IsCommandAvailable(cmd string) bool

IsCommandAvailable check command exits.

func LoadTemplates

func LoadTemplates(files embed.FS) error

LoadTemplates loads all the templates found in the templates directory.

Types

type Data

type Data map[string]interface{}

Data define a custom type for the template data.

Jump to

Keyboard shortcuts

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