Versions in this module Expand all Collapse all v0 v0.1.6 Nov 26, 2024 Changes in this version + type Decoder interface + Decode func(data io.Reader, out any) error + type Encoder interface + ContentType func() string + Encode func(writer io.Writer, value any) error + type JSONDecoder struct + Loose bool + func (decoder JSONDecoder) Decode(data io.Reader, out any) error + func (decoder JSONDecoder) DecodeValues(values url.Values, out any) error + type JSONEncoder struct + func (encoder JSONEncoder) ContentType() string + func (encoder JSONEncoder) Encode(writer io.Writer, value any) error + func (encoder JSONEncoder) EncodeValues(value any) url.Values + type NopDecoder struct + func (NopDecoder) Decode(_ io.Reader, _ any) error + func (NopDecoder) DecodeValues(_ map[string][]string, _ any) error + type NopEncoder struct + func (NopEncoder) ContentType() string + func (NopEncoder) Encode(_ io.Writer, _ any) error + type Registry struct + func New() Registry + func (reg Registry) Decoder(contentTypes ...string) Decoder + func (reg Registry) DefaultDecoder() Decoder + func (reg Registry) DefaultEncoder() Encoder + func (reg Registry) DefaultValueDecoder() ValueDecoder + func (reg Registry) DefaultValueEncoder() ValueEncoder + func (reg Registry) Encoder(contentTypes ...string) Encoder + func (reg Registry) ValueDecoder(contentTypes ...string) ValueDecoder + func (reg Registry) ValueEncoder(contentTypes ...string) ValueEncoder + type ValueDecoder interface + DecodeValues func(values url.Values, out any) error + type ValueEncoder interface + EncodeValues func(value any) url.Values