Documentation ¶
Overview ¶
package bind provides reflection shortcuts for binding key/value pairs and strings to static types
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Params ¶
func Params(v interface{}, params httprouter.Params) error
Params parses httprouter.Params and injects them into v.
func ParamsValue ¶
func ParamsValue(obj reflect.Value, params httprouter.Params) error
ParamsValue parses httprouter.Params and injects them into v.
Types ¶
type TypeMismatchError ¶
TypeMismatchError is an error that is caused by attempting to bind a type to a field with a different type.
func (TypeMismatchError) Error ¶
func (e TypeMismatchError) Error() string
Click to show internal directories.
Click to hide internal directories.