Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CastType ¶
CastType attempts to cast the given value to the target type If the value is nil, it will return the target value If the value is already of the correct type, it will return it Numbers are a bit tricky, they are automatically converted to float64 when unmarshalled from JSON, so we need to check for that and convert to what we expect
See implementation for more details
func ExpectsPayload ¶
func ExpectsPayload(param any) types.ExpectedPayloadType
ExpectsPayload returns whether the given parameter expects a payload or not by checking if it is a void type
func MakeCastError ¶
Attempts to construct a CastError from the expected and gotten types
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.