Versions in this module Expand all Collapse all v0 v0.1.1 Jan 27, 2023 v0.1.0 Nov 28, 2022 Changes in this version + func CtxValue(ctx context.Context) *T + func CtxWith(parent context.Context, v *T) context.Context + func DefaultLogHandler(log *Log) + func DoIfCtxValueValid(ctx context.Context, fn func(v *T)) + type Kind int + const Invalid + const VbigInt + const Vbool + const Vfloat64 + const Vint64 + const Vlist + const Vmap + const Vstring + const Vtime + func (k Kind) String() string + type List []Value + func (v *List) ToValue() Value + type Log struct + Err error + func (l *Log) Valid() bool + type Map map[string]Value + func (v *Map) ToValue() Value + func (v Map) Has(key string) bool + func (v Map) Keys() []string + func (v Map) ToValues() List + type Value struct + func BigInt(v *big.Int) Value + func Bool(v bool) Value + func Float64(v float64) Value + func Int(v int) Value + func Int64(v int64) Value + func NewList(cap int) Value + func NewMap(cap int) Value + func String(v string) Value + func Time(v time.Time) Value + func (v *Value) Append(vs ...Value) + func (v *Value) Is(k Kind) bool + func (v *Value) Kind() Kind + func (v *Value) Merge(m Map) + func (v *Value) Set(key string, value Value) + func (v *Value) ToList() List + func (v *Value) ToMap() Map + func (v Value) GoString() string + func (v Value) MarshalCBOR() ([]byte, error) + func (v Value) MarshalJSON() ([]byte, error) + func (v Value) Ptr() *Value + func (v Value) ToAny() any + func (v Value) ToBigInt() *big.Int + func (v Value) ToBool() bool + func (v Value) ToFloat64() float64 + func (v Value) ToInt64() int64 + func (v Value) ToString() string + func (v Value) ToTime() time.Time