template

package
v0.0.0-...-67bdb66 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindAndParseTemplates

func FindAndParseTemplates(vfs fs.FS, rootTmpl *gotemplate.Template, rootDir string) (*gotemplate.Template, error)

func Helpers

func Helpers(baseTemplate *gotemplate.Template) gotemplate.FuncMap

Types

type Assignment

type Assignment struct {
	Path           ast.Path
	InitSafeguards []string
	Constraints    []ast.AssignmentConstraint
	Method         ast.AssignmentMethod
	Value          ast.AssignmentValue
}

type Builder

type Builder struct {
	Package              string
	BuilderSignatureType string
	BuilderName          string
	ObjectName           string
	Imports              fmt.Stringer
	ImportAlias          string // alias to the pkg in which the object being built lives.
	Comments             []string
	Constructor          Constructor
	Properties           []ast.StructField
	Options              []Option
	Defaults             []OptionCall
}

type Constructor

type Constructor struct {
	Args        []ast.Argument
	Assignments []Assignment
}

type Option

type Option struct {
	Name        string
	Comments    []string
	Args        []ast.Argument
	Assignments []Assignment
}

type OptionCall

type OptionCall struct {
	OptionName string
	Args       []string
}

Jump to

Keyboard shortcuts

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