package
0.0.0-20250213232608-c453f8b35c75
Repository: https://github.com/stellar/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 marshaling to json.
RenderStatus write data to w, after marshaling to json.
ReqBodyHandler returns an HTTP Handler for function fn.
# Variables
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.