package template
import "github.com/aanand/compose-file/template"
Index ¶
- type InvalidTemplateError
- func Substitute(template string, mapping Mapping) (result string, err *InvalidTemplateError)
- func (e InvalidTemplateError) Error() string
- type Mapping
Types ¶
type InvalidTemplateError ¶
type InvalidTemplateError struct { Template string }
func Substitute ¶
func Substitute(template string, mapping Mapping) (result string, err *InvalidTemplateError)
func (InvalidTemplateError) Error ¶
func (e InvalidTemplateError) Error() string
type Mapping ¶
A user-supplied function which maps from variable names to values. Returns the value as a string and a bool indicating whether the value is present, to distinguish between an empty string and the absence of a value.
Source Files ¶
- Version
- v0.0.0-20170111165333-8b762b24ea40 (latest)
- Published
- Jan 11, 2017
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 1 month ago –
Tools for package owners.