generator

package
v0.0.0-...-f39f2e4 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// SupportedFileTypes provides list of file extensions supported for data files
	SupportedFileTypes = []string{".json", ".yaml", ".yml"}
)

Functions

func Generate

func Generate(inputTemplate, outfile string, sources *DataSources) error

Generate file using the specified template file and input data to the specified file location.

Types

type DataSources

type DataSources struct {
	Data     []string
	DataFile string
	UseEnv   bool
}

DataSources specifies different sources of data

Jump to

Keyboard shortcuts

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