Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Node ¶
type Node struct {
Val string // The value of this node, if it's a leaf node
Children map[string]Node // Child nodes, for nested structures
}
Node represents a parsed form data node in a tree structure. It can contain a leaf value (Val) and/or child nodes organized in a hierarchy. This allows for representing nested form data structures.
func (Node) Bind ¶
Bind recursively binds the node's data to the provided destination value. It handles different types (structs, maps, slices, etc.) appropriately. Returns an error if binding fails due to type incompatibility or invalid data.
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser parses URL form values into a tree structure for binding. It uses a sync.Pool to recycle maps for better performance.
Click to show internal directories.
Click to hide internal directories.