Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupportedType = errors.New("decoder: unsupported type")
Functions ¶
This section is empty.
Types ¶
type CachedDecoder ¶
type CachedDecoder struct {
// contains filtered or unexported fields
}
func NewCachedDecoder ¶
func NewCachedDecoder(v interface{}, tag string) (*CachedDecoder, error)
func (*CachedDecoder) Decode ¶
func (d *CachedDecoder) Decode(data Getter, v interface{}) error
type MapDecoder ¶
type MapDecoder struct {
// contains filtered or unexported fields
}
func NewMapDecoder ¶
func NewMapDecoder(v interface{}, tag string) (*MapDecoder, error)
type ParamsDecoder ¶
type ParamsDecoder struct {
// contains filtered or unexported fields
}
func NewParamsDecoder ¶
func NewParamsDecoder(v interface{}, tag string) (*ParamsDecoder, error)
func (*ParamsDecoder) Decode ¶
func (d *ParamsDecoder) Decode(data []httprouter.Param, v interface{}) error
type ParamsGetter ¶
type ParamsGetter []httprouter.Param
func (ParamsGetter) Get ¶
func (ps ParamsGetter) Get(key string) string
func (ParamsGetter) Values ¶
func (ps ParamsGetter) Values(key string) []string
Click to show internal directories.
Click to hide internal directories.