Documentation ¶
Index ¶
- func CustomObjectStrictUnmarshalBlock(obj ast.Object) string
- func CustomObjectUnmarshalBlock(obj ast.Object) string
- func ExtraBuilderDocsBlock(builder ast.Builder) string
- func ExtraObjectDocsBlock(obj ast.Object) string
- func ExtraPackageDocsBlock(schema *ast.Schema) string
- type Builder
- type FuncMap
- type Option
- type OptionCall
- type Template
- func (template *Template) ExecuteAsBytes(data any) ([]byte, error)
- func (template *Template) Exists(name string) bool
- func (template *Template) Funcs(funcs FuncMap) *Template
- func (template *Template) Render(file string, data any) (string, error)
- func (template *Template) RenderAsBytes(file string, data any) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomObjectStrictUnmarshalBlock ¶ added in v0.0.2
func ExtraBuilderDocsBlock ¶
func ExtraObjectDocsBlock ¶
func ExtraPackageDocsBlock ¶
Types ¶
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 ast.Constructor Properties []ast.StructField Options []ast.Option Defaults []OptionCall }
type FuncMap ¶
type FuncMap = gotemplate.FuncMap
type Option ¶
func ParseDirectories ¶
type OptionCall ¶
type Template ¶
type Template struct {
// contains filtered or unexported fields
}
func (*Template) ExecuteAsBytes ¶
Click to show internal directories.
Click to hide internal directories.