Versions in this module Expand all Collapse all v3 v3.2.1 Jan 5, 2026 v3.2.0 Dec 26, 2025 v3.1.5 Dec 16, 2025 v3.1.4 Dec 18, 2025 Changes in this version type Value + func (v *Value) GoValue() (any, error) v3.1.3 Dec 16, 2025 v3.1.2 Dec 16, 2025 v3.1.1 Dec 16, 2025 v3.1.0 Dec 16, 2025 v3.0.0 Dec 15, 2025 Changes in this version + type ErrCouldNotUnpackToType struct + Type reflect.Type + func (e ErrCouldNotUnpackToType) Error() string + type ErrIncompatibleTypes struct + A *Value + B *Value + func (e ErrIncompatibleTypes) Error() string + type ErrUnexpectedType struct + Actual Type + Expected Type + func (e ErrUnexpectedType) Error() string + type ErrUnexpectedTypes struct + Actual Type + Expected []Type + func (e ErrUnexpectedTypes) Error() string + type KeyValue struct + Key string + Value *Value + type MapKeyNotFound struct + Key string + func (e MapKeyNotFound) Error() string + type SliceIndexOutOfRange struct + Index int + func (e SliceIndexOutOfRange) Error() string + type Type string + const TypeBool + const TypeFloat + const TypeInt + const TypeMap + const TypeNull + const TypeSlice + const TypeString + const TypeUnknown + func (t Type) String() string + type Value struct + Metadata map[string]any + func NewBoolValue(x bool) *Value + func NewFloatValue(x float64) *Value + func NewIntValue(x int64) *Value + func NewMapValue() *Value + func NewNestedValue(v *Value) *Value + func NewNullValue() *Value + func NewSliceValue() *Value + func NewStringValue(x string) *Value + func NewValue(v any) *Value + func (v *Value) Add(other *Value) (*Value, error) + func (v *Value) Append(val *Value) error + func (v *Value) BoolValue() (bool, error) + func (v *Value) Compare(other *Value) (int, error) + func (v *Value) Copy() (*Value, error) + func (v *Value) DeleteMapKey(key string) error + func (v *Value) Divide(other *Value) (*Value, error) + func (v *Value) Equal(other *Value) (*Value, error) + func (v *Value) EqualTypeValue(other *Value) (bool, error) + func (v *Value) FloatValue() (float64, error) + func (v *Value) GetMapKey(key string) (*Value, error) + func (v *Value) GetSliceIndex(i int) (*Value, error) + func (v *Value) GreaterThan(other *Value) (*Value, error) + func (v *Value) GreaterThanOrEqual(other *Value) (*Value, error) + func (v *Value) IntValue() (int64, error) + func (v *Value) Interface() any + func (v *Value) IsBool() bool + func (v *Value) IsBranch() bool + func (v *Value) IsFloat() bool + func (v *Value) IsIgnore() bool + func (v *Value) IsInt() bool + func (v *Value) IsMap() bool + func (v *Value) IsNull() bool + func (v *Value) IsScalar() bool + func (v *Value) IsSlice() bool + func (v *Value) IsSpread() bool + func (v *Value) IsString() bool + func (v *Value) Kind() reflect.Kind + func (v *Value) Len() (int, error) + func (v *Value) LessThan(other *Value) (*Value, error) + func (v *Value) LessThanOrEqual(other *Value) (*Value, error) + func (v *Value) MapCopy() (*Value, error) + func (v *Value) MapKeyExists(key string) (bool, error) + func (v *Value) MapKeyValues() ([]KeyValue, error) + func (v *Value) MapKeys() ([]string, error) + func (v *Value) MapLen() (int, error) + func (v *Value) MarkAsBranch() + func (v *Value) MarkAsIgnore() + func (v *Value) MarkAsSpread() + func (v *Value) MetadataValue(key string) (any, bool) + func (v *Value) Modulo(other *Value) (*Value, error) + func (v *Value) Multiply(other *Value) (*Value, error) + func (v *Value) NotEqual(other *Value) (*Value, error) + func (v *Value) RangeMap(f func(string, *Value) error) error + func (v *Value) RangeSlice(f func(int, *Value) error) error + func (v *Value) Set(newValue *Value) error + func (v *Value) SetMapKey(key string, value *Value) error + func (v *Value) SetMetadataValue(key string, val any) + func (v *Value) SetSliceIndex(i int, val *Value) error + func (v *Value) SliceIndexRange(start, end int) (*Value, error) + func (v *Value) SliceLen() (int, error) + func (v *Value) String() string + func (v *Value) StringIndexRange(start, end int) (*Value, error) + func (v *Value) StringLen() (int, error) + func (v *Value) StringValue() (string, error) + func (v *Value) Subtract(other *Value) (*Value, error) + func (v *Value) Type() Type + func (v *Value) UnpackKinds(kinds ...reflect.Kind) *Value + func (v *Value) UnpackUntilAddressable() (*Value, error) + func (v *Value) UnpackUntilKind(k reflect.Kind) (*Value, error) + func (v *Value) UnpackUntilKinds(kinds ...reflect.Kind) (*Value, error) + func (v *Value) UnpackUntilType(t reflect.Type) (*Value, error) + type Values []*Value + func (v Values) ToSliceValue() (*Value, error)