Versions in this module Expand all Collapse all v0 v0.1.1 Jan 25, 2024 Changes in this version + const HALJSON + const HEALTHJSON + const JSON + var DefaultResponse = json.RawMessage(`{"message":"ok"}`) + var ErrBadRequest = errors.New("bad request") + var ErrNotJSONObject = errors.New("input is not a json object") + func ExecuteFunc(ctx context.Context, fn, param interface{}, cType contentType) (interface{}, bool, error) + func Handler(fn, param interface{}, cType contentType) (http.Handler, error) + func Render(w http.ResponseWriter, data interface{}, cType contentType) + func RenderStatus(w http.ResponseWriter, statusCode int, data interface{}, cType contentType) + func ReqBodyHandler(fn interface{}, cType contentType) (http.Handler, error) + type OptString struct + IsSet bool + Valid bool + Value string + func (s *OptString) UnmarshalJSON(in []byte) error + type RawObject []byte + func (o *RawObject) UnmarshalJSON(in []byte) error + func (o RawObject) MarshalJSON() ([]byte, error)