Documentation
¶
Overview ¶
Package transform compiles reusable paths and transfers values through Bindly's typed destination binding. It has no handler or transport ownership.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Path ¶
type Path struct {
// contains filtered or unexported fields
}
Path is an immutable path over Go structs or JSON-like maps and slices.
func CompilePointer ¶
CompilePointer compiles an RFC 6901 pointer. The empty pointer names the root.
func CompileSelector ¶
CompileSelector compiles an exact dot/bracket path such as Scope.Items[0].ID. Empty segments, forgiving separators and implicit roots are rejected.
func (*Path) Assign ¶
Assign writes into a JSON-like object. It creates object parents only; arrays must already exist and conflicting/scalar paths fail explicitly.
func (*Path) ForType ¶
ForType returns a separate immutable path with struct field indexes planned for one declared source type. The caller's Path is never modified.
type Plan ¶
type Plan struct {
// contains filtered or unexported fields
}
Plan is immutable and safe for concurrent invocations. Bindly owns all destination field access, pointer allocation, and JSON type conversion.
func CompileFor ¶
CompileFor additionally validates statically known source fields against a declared source type; no first-invocation source shape is cached.