Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToEvent ¶
ToEvent converts a map[string]interface{} to an Event.
Pointer values encode as the value pointed to. A nil pointer encodes as the null JSON value.
Interface values encode as the value contained in the interface. A nil interface value encodes as the null JSON value.
Channel, complex, and function values cannot be represented in an Event. Attempting to encode such a value causes ToEvent to return an UnsupportedTypeError.
The data should not contain any cycles. Cycles are not detected and will result in a panic caused by stack overflow.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.