Documentation ¶
Overview ¶
Package resolver provides templating for baur configuration files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoTemplate ¶
type GoTemplate struct {
// contains filtered or unexported fields
}
GoTemplate parses template strings and executes the template statements.
func NewGoTemplate ¶
func NewGoTemplate(appName, root string, gitCommitFn func() (string, error)) *GoTemplate
NewGoTemplate returns a GoTemplate instance. The .AppName and .Root variables are initialized with appName and root. gitCommitFn is the function that is called via {{ gitCommit }} in a template.
Click to show internal directories.
Click to hide internal directories.