template

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	Value      cue.Value
	ImportPath string
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator(dir string, args ...string) *Generator

func (*Generator) CompileAndValidate

func (g *Generator) CompileAndValidate() error

func (*Generator) Compiler added in v0.2.8

func (g *Generator) Compiler() *compiler.Compiler

func (*Generator) RenderJSON

func (g *Generator) RenderJSON() ([]byte, error)

func (*Generator) WithDefaults

func (g *Generator) WithDefaults(obj interface{}) (*Generator, error)

func (*Generator) WithResource

func (g *Generator) WithResource(obj interface{}) (*Generator, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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