Documentation
¶
Index ¶
- func AddFS(target map[string]load.Source, cwd, prependPath string, files fs.FS) error
- func AddFiles(target map[string]load.Source, cwd string, files ...File) error
- func CheckErr(o Errer) error
- func Fmt(file string) error
- func FmtBytes(data []byte) ([]byte, error)
- func FmtCUEInPlace(file string) ([]byte, error)
- func ReadCUE(file string) ([]byte, error)
- func UnmarshalFile(file string, obj any) error
- func WrapErr(err error) error
- type Context
- func (c *Context) Compile(data []byte) (*cue.Value, error)
- func (c *Context) Decode(v *cue.Value, obj any) error
- func (c *Context) Encode(obj any) (*cue.Value, error)
- func (c *Context) Validate(path, typeName string) error
- func (c *Context) Value() (*cue.Value, error)
- func (c *Context) ValueNoSchema() (*cue.Value, error)
- func (c Context) WithFS(fs ...fs.FS) *Context
- func (c Context) WithFile(name string, data []byte) *Context
- func (c Context) WithFiles(file ...File) *Context
- func (c Context) WithNestedFS(prepend string, fs fs.FS) *Context
- func (c Context) WithParser(parser ParserFunc) *Context
- func (c Context) WithSchema(path, typeName string) *Context
- type Errer
- type File
- type ParserFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FmtCUEInPlace ¶
func UnmarshalFile ¶
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func NewContext ¶
func NewContext() *Context
func (Context) WithParser ¶
func (c Context) WithParser(parser ParserFunc) *Context
func (Context) WithSchema ¶
Click to show internal directories.
Click to hide internal directories.