Versions in this module Expand all Collapse all v14 v14.0.1 Nov 13, 2026 v14.0.0 Nov 12, 2026 Changes in this version + const DefaultContextValueTag + const DefaultFormTag + const DefaultHeaderTag + const DefaultPathParamTag + const DefaultQueryEntrySep + const DefaultQueryTag + var DefaultQueryFieldSetter = func(field *reflect.StructField, ptr unsafe.Pointer, values []string) error + var ErrParamNotWeekday = fmt.Errorf("parameter is not a valid weekday") + var ErrTypeMismatch = fmt.Errorf("type mismatch") + var ErrUnsupportedType = fmt.Errorf("unsupported type") + var ParseDate = func(paramValue string) (time.Time, error) + var ParseTime = func(paramValue string) (time.Time, error) + var ParseWeekday = func(paramValue string) (time.Weekday, error) + func DecodeQuery(path string) string + func DefaultPathFieldSetter[V any](field *reflect.StructField, ptr unsafe.Pointer, value V) error + func GobEncodeEntry[T any](entry Entry[T], w io.Writer) error + func GobEncode[T any](store Entries[T], w io.Writer) error + func GobSerializeEntry[T any](entry Entry[T]) ([]byte, error) + func GobSerialize[T any](store Entries[T]) ([]byte, error) + type ContextValues = Entries[any] + type ContextValuesDecoderOptions = EntriesDecoderOptions[any] + type Entries []Entry[V] + func GobDecode[T any](b []byte) (store Entries[T], err error) + func (e *Entries[V]) Add(key string, value V) + func (e *Entries[V]) AddEntry(entryToAdd Entry[V]) + func (e *Entries[V]) Pop(key string) V + func (e *Entries[V]) PopPointer(key string) unsafe.Pointer + func (e *Entries[V]) Remove(key string) bool + func (e *Entries[V]) Replace(key string, value V) bool + func (e *Entries[V]) Reset() + func (e *Entries[V]) Set(key string, value V) + func (e *Entries[V]) SetByIndex(index int, value V) + func (e *Entries[V]) SetEntryByIndex(index int, entry Entry[V]) + func (e *Entries[V]) SetImmutable(key string, value V) + func (e Entries[V]) Bind(key string, ptr *V) bool + func (e Entries[V]) Clone() Entries[V] + func (e Entries[V]) Exists(key string) bool + func (e Entries[V]) ForEach(fn func(key string, value V)) + func (e Entries[V]) ForEachString(fn func(key string, value string)) + func (e Entries[V]) Get(key string) V + func (e Entries[V]) GetBool(key string) bool + func (e Entries[V]) GetByIndex(index int) (string, bool) + func (e Entries[V]) GetByte(key string) byte + func (e Entries[V]) GetDate(key string) time.Time + func (e Entries[V]) GetDuration(key string) time.Duration + func (e Entries[V]) GetEntry(key string) (Entry[V], bool) + func (e Entries[V]) GetEntryByIndex(index int) (Entry[V], bool) + func (e Entries[V]) GetEscape(key string) string + func (e Entries[V]) GetFloat32(key string) float32 + func (e Entries[V]) GetFloat64(key string) float64 + func (e Entries[V]) GetIP(key string) netip.Addr + func (e Entries[V]) GetInt(key string) int + func (e Entries[V]) GetInt16(key string) int16 + func (e Entries[V]) GetInt32(key string) int32 + func (e Entries[V]) GetInt64(key string) int64 + func (e Entries[V]) GetInt8(key string) int8 + func (e Entries[V]) GetIntUnslashed(key string) int + func (e Entries[V]) GetLastEntry() (Entry[V], bool) + func (e Entries[V]) GetPointer(key string) unsafe.Pointer + func (e Entries[V]) GetRune(key string) rune + func (e Entries[V]) GetString(key string) string + func (e Entries[V]) GetStringSlice(key string) []string + func (e Entries[V]) GetTime(key string) time.Time + func (e Entries[V]) GetTrim(key string) string + func (e Entries[V]) GetTrimFile(key string) string + func (e Entries[V]) GetTrimFileInt(key string) int + func (e Entries[V]) GetTrimHTML(key string) string + func (e Entries[V]) GetTrimJSON(key string) string + func (e Entries[V]) GetTrimXML(key string) string + func (e Entries[V]) GetUUID(key string) uuid.UUID + func (e Entries[V]) GetUint(key string) uint + func (e Entries[V]) GetUint16(key string) uint16 + func (e Entries[V]) GetUint32(key string) uint32 + func (e Entries[V]) GetUint64(key string) uint64 + func (e Entries[V]) GetUint8(key string) uint8 + func (e Entries[V]) GetWeekday(key string) time.Weekday + func (e Entries[V]) Len() int + func (e Entries[V]) Lookup(key string) (V, bool) + func (e Entries[V]) LookupByIndex(index int) (V, bool) + func (e Entries[V]) MergeQuery(extra url.Values) url.Values + func (e Entries[V]) ToMap() map[string][]string + func (e Entries[V]) ToQuery() url.Values + func (e Entries[V]) WithoutDefaults() Entries[V] + type EntriesDecoder struct + func NewContextValuesDecoder[T any](opts ContextValuesDecoderOptions) (*EntriesDecoder[T, any], error) + func NewEntriesDecoder[T, V any](opts EntriesDecoderOptions[V]) (*EntriesDecoder[T, V], error) + func NewPathParamsDecoder[T any](opts PathParamsDecoderOptions) (*EntriesDecoder[T, any], error) + func (d *EntriesDecoder[T, V]) DecodeEntries(store Entries[V], target *T) error + func (d *EntriesDecoder[T, V]) HasRequired() bool + type EntriesDecoderOptions struct + FieldSetter FieldSetter[V] + FieldTag string + Strict bool + type Entry struct + Immutable bool + Key string + Sep string + Value V + func GobDecodeEntry[T any](b []byte) (entry Entry[T], err error) + func (e *Entry[V]) Bool() bool + func (e *Entry[V]) Byte() byte + func (e *Entry[V]) Date() time.Time + func (e *Entry[V]) Duration() time.Duration + func (e *Entry[V]) Escape() string + func (e *Entry[V]) Float32() float32 + func (e *Entry[V]) Float64() float64 + func (e *Entry[V]) GetBool() (bool, bool) + func (e *Entry[V]) GetByte() (byte, bool) + func (e *Entry[V]) GetDate() (time.Time, bool) + func (e *Entry[V]) GetDuration() (time.Duration, bool) + func (e *Entry[V]) GetFloat32() (float32, bool) + func (e *Entry[V]) GetFloat64() (float64, bool) + func (e *Entry[V]) GetIP() (netip.Addr, bool) + func (e *Entry[V]) GetInt() (int, bool) + func (e *Entry[V]) GetInt16() (int16, bool) + func (e *Entry[V]) GetInt32() (int32, bool) + func (e *Entry[V]) GetInt64() (int64, bool) + func (e *Entry[V]) GetInt8() (int8, bool) + func (e *Entry[V]) GetRune() (rune, bool) + func (e *Entry[V]) GetString() (string, bool) + func (e *Entry[V]) GetStringSlice() ([]string, bool) + func (e *Entry[V]) GetTime() (time.Time, bool) + func (e *Entry[V]) GetTrim() string + func (e *Entry[V]) GetUUID() (uuid.UUID, bool) + func (e *Entry[V]) GetUint() (uint, bool) + func (e *Entry[V]) GetUint16() (uint16, bool) + func (e *Entry[V]) GetUint32() (uint32, bool) + func (e *Entry[V]) GetUint64() (uint64, bool) + func (e *Entry[V]) GetUint8() (uint8, bool) + func (e *Entry[V]) GetWeekday() (time.Weekday, bool) + func (e *Entry[V]) IP() netip.Addr + func (e *Entry[V]) Int() int + func (e *Entry[V]) Int16() int16 + func (e *Entry[V]) Int32() int32 + func (e *Entry[V]) Int64() int64 + func (e *Entry[V]) Int8() int8 + func (e *Entry[V]) IntUnslashed() int + func (e *Entry[V]) IsDefault() bool + func (e *Entry[V]) MustBool() bool + func (e *Entry[V]) MustByte() byte + func (e *Entry[V]) MustDate() time.Time + func (e *Entry[V]) MustDuration() time.Duration + func (e *Entry[V]) MustFloat32() float32 + func (e *Entry[V]) MustFloat64() float64 + func (e *Entry[V]) MustIP() netip.Addr + func (e *Entry[V]) MustInt() int + func (e *Entry[V]) MustInt16() int16 + func (e *Entry[V]) MustInt32() int32 + func (e *Entry[V]) MustInt64() int64 + func (e *Entry[V]) MustInt8() int8 + func (e *Entry[V]) MustRune() rune + func (e *Entry[V]) MustString() string + func (e *Entry[V]) MustStringSlice() []string + func (e *Entry[V]) MustTime() time.Time + func (e *Entry[V]) MustUUID() uuid.UUID + func (e *Entry[V]) MustUint() uint + func (e *Entry[V]) MustUint16() uint16 + func (e *Entry[V]) MustUint32() uint32 + func (e *Entry[V]) MustUint64() uint64 + func (e *Entry[V]) MustUint8() uint8 + func (e *Entry[V]) MustWeekday() time.Weekday + func (e *Entry[V]) Rune() rune + func (e *Entry[V]) String() string + func (e *Entry[V]) StringSlice() []string + func (e *Entry[V]) Time() time.Time + func (e *Entry[V]) TrimFile() string + func (e *Entry[V]) TrimFileInt() int + func (e *Entry[V]) TrimHTML() string + func (e *Entry[V]) TrimJSON() string + func (e *Entry[V]) TrimXML() string + func (e *Entry[V]) UUID() uuid.UUID + func (e *Entry[V]) Uint() uint + func (e *Entry[V]) Uint16() uint16 + func (e *Entry[V]) Uint32() uint32 + func (e *Entry[V]) Uint64() uint64 + func (e *Entry[V]) Uint8() uint8 + func (e *Entry[V]) Weekday() time.Weekday + func (e Entry[V]) NotFound(typ reflect.Type) *ErrEntryNotFound + type ErrEntryNotFound struct + Key string + Kind reflect.Kind + Type reflect.Type + func (e *ErrEntryNotFound) As(target any) bool + func (e *ErrEntryNotFound) Error() string + type FieldSetter func(field *reflect.StructField, ptr unsafe.Pointer, value V) error + type FormDecoderOptions = EntriesDecoderOptions[[]string] + type HeaderDecoderOptions = EntriesDecoderOptions[[]string] + type KeyValuesDecoder struct + func NewFormDecoder[T any](opts FormDecoderOptions) (*KeyValuesDecoder[T], error) + func NewHeaderDecoder[T any](opts HeaderDecoderOptions) (*KeyValuesDecoder[T], error) + func NewKeyValuesDecoder[T any](opts KeyValuesDecoderOptions) (*KeyValuesDecoder[T], error) + func NewQueryDecoder[T any](opts QueryDecoderOptions) (*KeyValuesDecoder[T], error) + func (d *KeyValuesDecoder[T]) DecodeKeyValues(query map[string][]string, target *T) error + type KeyValuesDecoderOptions = EntriesDecoderOptions[[]string] + type PathParams = Entries[any] + type PathParamsDecoderOptions = EntriesDecoderOptions[any] + type QueryDecoderOptions = EntriesDecoderOptions[[]string] + type StringEntries = Entries[string] + type StringEntry = Entry[string] + type StringSliceEntries struct + func NewStringSliceEntries(m map[string][]string, valuesJoinSeparator string) StringSliceEntries + func (e StringSliceEntries) Exists(key string) bool + func (e StringSliceEntries) GetSeparator() string + func (e StringSliceEntries) GetSimpleDate(keys ...string) (types.SimpleDate, bool, error) + func (e StringSliceEntries) GetSlice(key string) []string + func (e StringSliceEntries) IsEmpty() bool + func (e StringSliceEntries) ToHeader() http.Header + func (e StringSliceEntries) ToMap() map[string][]string + func (e StringSliceEntries) ToQuery() url.Values + type StructValidator interface + Validate func() error + type ValidationError struct + Field string + Reason string + Value any + func (e *ValidationError) Error() string + func (e *ValidationError) GetReason() string + func (e *ValidationError) IsExtra() bool + func (e *ValidationError) IsRequired() bool