Versions in this module Expand all Collapse all v0 v0.20.0 Nov 6, 2022 Changes in this version + const ContentType + var ErrBadIdentifier = errors.New("invalid identifier, must match " + idRegexp) + func EncodeResponse(_ context.Context, w http.ResponseWriter, response interface{}) error + type ErrorRes struct + Err string + type Identifier struct + func NewIdentifier(v string) (Identifier, error) + func (i *Identifier) IsValid() bool + func (i *Identifier) Scan(value interface{}) error + func (i *Identifier) String() string + func (i Identifier) Value() (driver.Value, error) + type Metadata map[string]interface + func (s *Metadata) FilterMap(predicateFunc func(string) bool, ...) + func (s *Metadata) IsApplicable(filterFunc func(string, interface{}) bool) bool + func (s *Metadata) RestrictKeys(predicate func(string) bool) + func (s *Metadata) Scan(src interface{}) error + type Response interface + Code func() int + Empty func() bool + Headers func() map[string]string + type Tags map[string]string