jsonutil

package
v2.0.33 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OverflowType = reflect.TypeOf(Overflow{})

OverflowType is needed to find the Overflow field within the struct

Functions

func MarshalStructWithMap

func MarshalStructWithMap(v any) ([]byte, error)

func UnmarshalStructWithMap

func UnmarshalStructWithMap(data []byte, v any) error

Types

type JSONBytes

type JSONBytes []byte

func (*JSONBytes) MarshalJSON

func (n *JSONBytes) MarshalJSON() ([]byte, error)

func (*JSONBytes) UnmarshalJSON

func (n *JSONBytes) UnmarshalJSON(data []byte) error

type Overflow

type Overflow map[string]any

Overflow is used for json fields not represented within the struct

Jump to

Keyboard shortcuts

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