input

package
v6.26.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input struct {
	// If delete is true, the file will be deleted if it exists. Allows
	// for files to be moved/renamed.
	Delete bool
	// Path is the absolute path of the file to be generated from this
	// Input.
	Path string
	// Permissions to generate the file with.
	Permissions fs.FileMode
	// TemplateBody is the Go text template from which the file is
	// generated.
	TemplateBody string
	// TemplateData defines data for the template defined in TemplateBody.
	TemplateData interface{}
	// TemplateDelims are used to call
	// https://golang.org/pkg/text/template/#Template.Delims if set.
	TemplateDelims InputTemplateDelims
	// SkipRegenCheck if set skips over the `isRegenerable` check when creating files
	SkipRegenCheck bool
}

type InputTemplateDelims

type InputTemplateDelims struct {
	Left  string
	Right string
}

Jump to

Keyboard shortcuts

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