Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Stdout io.WriteCloser = os.Stdout
Stdout allows overriding the writer to use when templates are written to stdout ("-").
Functions ¶
func RunTemplates ¶
RunTemplates - run all gomplate templates specified by the given configuration
Types ¶
type Config ¶
type Config struct { Input string InputFiles []string InputDir string ExcludeGlob []string OutputFiles []string OutputDir string DataSources []string DataSourceHeaders []string LDelim string RDelim string }
Config - values necessary for rendering templates with gomplate. Mainly for use by the CLI
type MetricsType ¶
type MetricsType struct { TemplatesGathered int TemplatesProcessed int Errors int GatherDuration time.Duration // time it took to gather templates TotalRenderDuration time.Duration // time it took to render all templates RenderDuration map[string]time.Duration // times for rendering each template }
MetricsType - Warning: experimental! This may change in breaking ways without warning. This is not subject to any semantic versioning guarantees!
var Metrics *MetricsType
Metrics tracks interesting basic metrics around gomplate executions. Warning: experimental! This may change in breaking ways without warning. This is not subject to any semantic versioning guarantees!
Source Files ¶
Click to show internal directories.
Click to hide internal directories.