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 ¶ added in v2.5.0
RunTemplates - run all gomplate templates specified by the given configuration
Types ¶
type Config ¶ added in v2.5.0
type Config struct { Input string InputFiles []string InputDir string ExcludeGlob []string OutputFiles []string OutputDir string OutMode 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 ¶ added in v2.5.0
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.