Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DecodeError ¶
DecodeError describes a generated form decoding failure without exposing submitted values.
func (DecodeError) Error ¶
func (err DecodeError) Error() string
type Field ¶
type Field struct {
Name string
}
Field describes one expected form field for generated decoders.
type Schema ¶
type Schema struct {
Fields []Field
}
Schema describes the submitted fields accepted by a generated decoder.
type Values ¶
Values is the normalized representation passed to generated action decoders.
func DecodeExpected ¶
DecodeExpected returns a copy of the submitted values restricted to the schema field allowlist. Missing expected fields are allowed; validation decides whether an absent value is acceptable.
func FromURLValues ¶
FromURLValues copies request form values into a stable runtime structure.
func (Values) HasSubmitted ¶
HasSubmitted reports whether a field was submitted with at least one non-blank value.