union

package
v0.750.3 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(v interface{}) ([]byte, error)

Marshal marshals the provided union type into a JSON byte array.

func MarshalEx

func MarshalEx(v interface{}, allowEmptyUnion bool) ([]byte, error)

MarshalEx allows for configurable error handling.

func Unmarshal

func Unmarshal(data []byte, v interface{}) error

Unmarshal unmarshals the provided union type from a JSON byte array.

Types

This section is empty.

Jump to

Keyboard shortcuts

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