mapinterface

package
v0.0.0-...-31600e6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromEvent

func FromEvent(evt *event.Event) map[string]interface{}

func ToEvent

func ToEvent(m map[string]interface{}) (*event.Event, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL