templates

package
v4.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContainerTemplate = `` /* 10620-byte string literal not displayed */

ContainerTemplate is the template used to generate the container file.

View Source
var DefsTemplate = `` /* 3452-byte string literal not displayed */

DefsTemplate is the template used to generate the definition file.

Functions

func ExecuteTemplate

func ExecuteTemplate(tmpl string, data interface{}) ([]byte, error)

ExecuteTemplate renders the given template.

func WriteTemplate

func WriteTemplate(filename string, tmpl string, data interface{}) error

WriteTemplate executes the given templates with the given data. Then it writes the result in the output file. gofmt is used to format the output file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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