Versions in this module Expand all Collapse all v0 v0.1.0 Aug 9, 2026 Changes in this version + var ErrDriver = errors.New("driver") + var ErrMissing = errors.New("missing") + var ErrPanic = errors.New("panic") + var ErrPlane = errors.New("plane error") + var ErrReadOnly = errors.New("plane is read only") + var ErrSchema = errors.New("schema error") + var ErrValue = errors.New("invalid value") + var ErrWrongKind = errors.New("value: wrong kind") + var Null = nullValue + var RootRequired rootRequired + var SectionAbsent = sectionAbsent + var SectionNull = sectionNull + var SectionPresent = sectionPresent + func Compile[T any](opts ...Option) error + func ConcurrencyBudget(ctx context.Context) int + func Dump[T any](ctx context.Context, v T, sink Sink, opts ...Option) error + func Elements(err error) []error + func ErrorAt(addr Path, err error) error + func LoadOver[T any](ctx context.Context, seed T, src Source, opts ...Option) (T, error) + func Load[T any](ctx context.Context, src Source, opts ...Option) (T, error) + type AddressSet struct + func (a *AddressSet) Extension(key string) (map[Path]map[string]string, bool) + func (a *AddressSet) Has(m Member) bool + func (a *AddressSet) Len() int + func (a *AddressSet) Seq() iter.Seq[Member] + type Binding struct + func Bind[T any](src Source, opts ...Option) (*Binding[T], error) + func (b *Binding[T]) Load(ctx context.Context) (T, error) + func (b *Binding[T]) LoadOver(ctx context.Context, seed T) (T, error) + type Codec interface + func BoolValue[T any](enc func(T) (bool, error), dec func(bool) (T, error)) Codec + func BytesValue[T any](enc func(T) ([]byte, error), dec func([]byte) (T, error)) Codec + func NullValue[T any](inner Codec, load func() (T, error), isNull func(T) bool) Codec + func NumberValue[T any](enc func(T) (string, error), dec func(string) (T, error)) Codec + func StringValue[T any](enc func(T) (string, error), dec func(string) (T, error)) Codec + type Committer interface + Commit func(ctx context.Context) error + type CompositeAddr struct + func (a CompositeAddr) Path() Path + func (a CompositeAddr) String() string + type Concurrent interface + MaxConcurrent func() int + type Container interface + type Ensurer interface + Ensure func(ctx context.Context, addr Container, p Presence) error + type Enumerator interface + Children func(ctx context.Context, addr CompositeAddr) ([]Segment, error) + type Error struct + func (e *Error) Address() Path + func (e *Error) Error() string + func (e *Error) Format(f fmt.State, verb rune) + func (e *Error) Is(target error) bool + func (e *Error) Unwrap() error + type ExtTable struct + func ExtensionTable[T any](opts ...Option) (ExtTable, error) + func (t ExtTable) Extension(key string) (map[Path]map[string]string, bool) + type KeyCodec struct + func DurationLike[T ~int64]() KeyCodec + func NumberKey[T any](enc func(T) (string, error), dec func(string) (T, error)) KeyCodec + func NumberText[T any, PT TextPointer[T]]() KeyCodec + func StringKey[T any](enc func(T) (string, error), dec func(string) (T, error)) KeyCodec + func StringText[T any, PT TextPointer[T]]() KeyCodec + func (k KeyCodec) AsMapKey() Codec + type KeyExtension struct + TagKey string + Words []Word + type KeyFunc func(addr Path) (string, error) + type Keys struct + func NewKeys(a *AddressSet, name string, f KeyFunc) (*Keys, error) + func (k *Keys) Open() KeyFunc + func (k *Keys) PlaneName(addr Path) (string, bool) + type LeafAddr struct + func (a LeafAddr) Path() Path + func (a LeafAddr) String() string + func (a LeafAddr) Wants() VKind + type LeafRedirect struct + Target LeafAddr + func (r *LeafRedirect) Error() string + type Member interface + Path func() Path + String func() string + type OpenFunc func(ctx context.Context) (Reader, error) + type OpenWriterFunc func(ctx context.Context) (Writer, error) + type Option interface + func MaxConcurrency(n int) Option + func TagKey(key string) Option + func WithRegistry(reg *Registry) Option + type ParseFunc func(c C) (T, error) + type Path struct + func At(names ...string) Path + func (p Path) At(names ...string) Path + func (p Path) Compare(q Path) int + func (p Path) Elem(i uint) Path + func (p Path) IsRoot() bool + func (p Path) Segments() iter.Seq[Segment] + func (p Path) String() string + type PlaneNamer interface + PlaneName func(addr Path) (string, bool) + type Preparer interface + Prepare func(ctx context.Context, addrs []Path) error + type Presence uint8 + const PresenceAbsent + const PresenceElsewhere + const PresenceNull + const PresencePresent + func (p Presence) String() string + type Prober interface + Probe func(ctx context.Context, addr Container) (SectionInfo, error) + type Reader interface + Get func(ctx context.Context, addr LeafAddr) (Value, error) + type Registration interface + func WithTagKeys(exts ...KeyExtension) Registration + type Registry struct + func MustRegistry(items ...Registration) *Registry + func NewRegistry(items ...Registration) (*Registry, error) + func (r *Registry) Types() []reflect.Type + type Releaser interface + Close func() error + type RenderFunc func(v T) (C, error) + type SectionAddr struct + func (a SectionAddr) Path() Path + func (a SectionAddr) String() string + type SectionInfo struct + func SectionAt(target Container) SectionInfo + func (i SectionInfo) GoString() string + func (i SectionInfo) Presence() Presence + func (i SectionInfo) Redirect() (Container, bool) + type Segment struct + func IndexSegment(i uint) Segment + func NameSegment(text string) Segment + func (s Segment) Kind() SegmentKind + func (s Segment) Text() string + type SegmentKind uint8 + const Index + const Name + func (k SegmentKind) String() string + type Sink interface + Bind func(addrs *AddressSet) (OpenWriterFunc, error) + type SinkBinding struct + func BindSink[T any](sink Sink, opts ...Option) (*SinkBinding[T], error) + func (b *SinkBinding[T]) Dump(ctx context.Context, v T) error + type Source interface + Bind func(addrs *AddressSet) (OpenFunc, error) + type Spelling interface + Parse func(c C) (T, error) + Render func(v T) (C, error) + func SpellingFunc[T, C any](p ParseFunc[C, T], r RenderFunc[T, C]) Spelling[T, C] + func With[T, C any](s Spelling[T, C], ts ...Transform[T]) Spelling[T, C] + type TextPointer interface + type Transform interface + Apply func(v T) (T, error) + Invert func(v T) (T, error) + type Unsetter interface + Unset func(ctx context.Context, addr CompositeAddr) error + type VKind uint8 + const KindAbsent + const KindBool + const KindBytes + const KindNull + const KindNumber + const KindString + func (k VKind) String() string + type Value struct + func Bool(b bool) Value + func Bytes(b []byte) Value + func Number(text string) Value + func String(s string) Value + func (v Value) AsBool() (bool, error) + func (v Value) AsBytes() ([]byte, error) + func (v Value) AsFloat() (float64, error) + func (v Value) AsInt() (int64, error) + func (v Value) AsNumber() (string, error) + func (v Value) AsString() (string, error) + func (v Value) AsUint() (uint64, error) + func (v Value) GoString() string + func (v Value) Kind() VKind + type Word struct + Name string + TakesValue bool + type Writer interface + Set func(ctx context.Context, addr LeafAddr, v Value) error