Documentation ¶
Index ¶
- type Value
- func (val *Value) CueValue() cue.Value
- func (val *Value) Error() error
- func (val *Value) Field(label string) (cue.Value, error)
- func (val *Value) FillObject(x interface{}, paths ...string) error
- func (val *Value) FillRaw(x string, paths ...string) error
- func (val *Value) LookupValue(paths ...string) (*Value, error)
- func (val *Value) MakeValue(s string) (*Value, error)
- func (val *Value) StepByFields(handle func(in *Value) (bool, error)) error
- func (val *Value) String() (string, error)
- func (val *Value) UnmarshalTo(x interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Value ¶
type Value struct {
// contains filtered or unexported fields
}
Value is an object with cue.runtime and vendors
func NewValue ¶
func NewValue(s string, pd *packages.PackageDiscover) (*Value, error)
NewValue new a value
func (*Value) FillObject ¶
FillObject unify the value with object x at the given path.
func (*Value) LookupValue ¶
LookupValue reports the value at a path starting from val
func (*Value) StepByFields ¶
StepByFields process the fields in order
func (*Value) UnmarshalTo ¶
UnmarshalTo unmarshal value into golang object
Click to show internal directories.
Click to hide internal directories.