Versions in this module Expand all Collapse all v0 v0.3.0 Jan 25, 2024 Changes in this version + var DefaultMarshaler = NewMarshaler(&MarshalOptions{}) + var DefaultUnmarshaler = NewUnmarshaler(&UnmarshalOptions{}) + func CheckMarshal(i interface{}) error + func CheckMarshalType(t reflect.Type) error + func CheckUnmarshal(into interface{}) error + func CheckUnmarshalType(t reflect.Type) error + func IsRequiredFieldError(e error) (fieldName string, ok bool) + func Marshal(i interface{}) (string, error) + func MarshalValues(i interface{}) (url.Values, error) + func Unmarshal(into interface{}, queryString string) error + func UnmarshalValues(into interface{}, values url.Values) error + type MarshalOptions struct + DefaultMarshalPresence MarshalPresence + MarshalerFactory MarshalerFactory + NameTransformer NameTransformFunc + ValuesMarshalerFactory ValuesMarshalerFactory + func NewDefaultMarshalOptions() *MarshalOptions + type MarshalPresence int + const KeepEmpty + const MPUnspecified + const OmitEmpty + func (v MarshalPresence) String() string + type MarshalQS interface + MarshalQS func(opts *MarshalOptions) ([]string, error) + type Marshaler interface + Marshal func(v reflect.Value, opts *MarshalOptions) ([]string, error) + type MarshalerFactory interface + Marshaler func(t reflect.Type, opts *MarshalOptions) (Marshaler, error) + type NameTransformFunc func(string) string + type QSMarshaler struct + func NewMarshaler(opts *MarshalOptions) *QSMarshaler + func (p *QSMarshaler) CheckMarshal(i interface{}) error + func (p *QSMarshaler) CheckMarshalType(t reflect.Type) error + func (p *QSMarshaler) Marshal(i interface{}) (string, error) + func (p *QSMarshaler) MarshalValues(i interface{}) (url.Values, error) + type QSUnmarshaler struct + func NewUnmarshaler(opts *UnmarshalOptions) *QSUnmarshaler + func (p *QSUnmarshaler) CheckUnmarshal(into interface{}) error + func (p *QSUnmarshaler) CheckUnmarshalType(t reflect.Type) error + func (p *QSUnmarshaler) Unmarshal(into interface{}, queryString string) error + func (p *QSUnmarshaler) UnmarshalValues(into interface{}, values url.Values) error + type UnmarshalOptions struct + DefaultUnmarshalPresence UnmarshalPresence + NameTransformer NameTransformFunc + SliceToString func([]string) (string, error) + UnmarshalerFactory UnmarshalerFactory + ValuesUnmarshalerFactory ValuesUnmarshalerFactory + func NewDefaultUnmarshalOptions() *UnmarshalOptions + type UnmarshalPresence int + const Nil + const Opt + const Req + const UPUnspecified + func (v UnmarshalPresence) String() string + type UnmarshalQS interface + UnmarshalQS func(a []string, opts *UnmarshalOptions) error + type Unmarshaler interface + Unmarshal func(v reflect.Value, a []string, opts *UnmarshalOptions) error + type UnmarshalerFactory interface + Unmarshaler func(t reflect.Type, opts *UnmarshalOptions) (Unmarshaler, error) + type ValuesMarshaler interface + MarshalValues func(v reflect.Value, opts *MarshalOptions) (url.Values, error) + type ValuesMarshalerFactory interface + ValuesMarshaler func(t reflect.Type, opts *MarshalOptions) (ValuesMarshaler, error) + type ValuesUnmarshaler interface + UnmarshalValues func(v reflect.Value, vs url.Values, opts *UnmarshalOptions) error + type ValuesUnmarshalerFactory interface + ValuesUnmarshaler func(t reflect.Type, opts *UnmarshalOptions) (ValuesUnmarshaler, error)