Versions in this module Expand all Collapse all v1 v1.1.0 Sep 28, 2026 Changes in this version + type Mapping struct + From *Path + Required bool + To string + Transform Transform + type Path struct + func CompilePointer(raw string) (*Path, error) + func CompileSelector(raw string) (*Path, error) + func (p *Path) Assign(root map[string]any, value any) error + func (p *Path) ForType(root reflect.Type) (*Path, error) + func (p *Path) Select(root any) (any, bool, error) + func (p *Path) String() string + func (p *Path) ValidateType(root reflect.Type) error + type Plan struct + func Compile(destination reflect.Type, mappings []Mapping) (*Plan, error) + func CompileFor(source, destination reflect.Type, mappings []Mapping) (*Plan, error) + func (p *Plan) Apply(ctx context.Context, source, destination any) error + func (p *Plan) Value(ctx context.Context, source any) (any, error) + type Tag struct + Codec string + From string + To string + func Tags(destination reflect.Type) ([]Tag, error) + type Transform func(context.Context, any) (any, error)