package
0.0.0-20210414020239-6daa909df9a7
Repository: https://github.com/kingaj12/go.git
Documentation: pkg.go.dev
# Functions
ExecuteFunc executes the fn with the param after checking whether the function signature is valid or not by calling Handler.
Handler returns an HTTP Handler for function fn.
Render write data to w, after marshalling to json.
RenderStatus write data to w, after marshalling to json.
ReqBodyHandler returns an HTTP Handler for function fn.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
ErrNotJSONObject is returned when Object.UnmarshalJSON is called with bytes not representing a valid json object.
# Structs
This type is used to tell whether a JSON key is presented with its value being a JSON null value or is not presented.
# Type aliases
RawObject can be used directly to make sure that what's in the request body is not a json array:
func example(ctx context.Context, in httpjson.RawObject)
It can also be used as a field in a struct:
type example struct { name string extra httpjson.RawObject }
In this case, Unmarshaler will check whether extra is a json object ot not.