Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNonPointer = errors.New("non-pointer passed")
)
Functions ¶
func CreateQuery ¶
func CreateQuery(params interface{}, s setter) error
CreateQuery will iterate through the given struct or pointer to a struct, looking for fields tagged with `query`. For each tagged field that is not the zero value s.Set() is called with the string version of that field's value.
func ParseQuery ¶
func ParseQuery(r getter, params interface{}) error
ParseQuery will fill out the params based on the query tag.
Types ¶
type ErrQueryParseUnsupportedType ¶
ErrQueryParseUnsupportedType is returned when a query tag is applied to an unsupported type
func (ErrQueryParseUnsupportedType) Error ¶
func (err ErrQueryParseUnsupportedType) Error() string
Click to show internal directories.
Click to hide internal directories.