vo

package module
v0.0.0-...-d328e09 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONValue

type JSONValue []byte

JSONValue is a raw encoded JSON value. It implements Marshaller and Unmarshaler and can be used to delay JSON decoding or precompute a JSON encoding.

func (JSONValue) GetBool

func (m JSONValue) GetBool(keys ...string) (bool, error)

func (JSONValue) GetFloat

func (m JSONValue) GetFloat(keys ...string) (float64, error)

func (JSONValue) GetInt

func (m JSONValue) GetInt(keys ...string) (int, error)

func (JSONValue) GetInt64

func (m JSONValue) GetInt64(keys ...string) (int64, error)

func (JSONValue) GetString

func (m JSONValue) GetString(keys ...string) (string, error)

func (JSONValue) MarshalJSON

func (m JSONValue) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

func (JSONValue) MustBool

func (m JSONValue) MustBool(keys ...string) bool

func (JSONValue) MustFloat

func (m JSONValue) MustFloat(keys ...string) float64

func (JSONValue) MustInt

func (m JSONValue) MustInt(keys ...string) int

func (JSONValue) MustInt64

func (m JSONValue) MustInt64(keys ...string) int64

func (JSONValue) MustString

func (m JSONValue) MustString(keys ...string) string

func (*JSONValue) UnmarshalJSON

func (m *JSONValue) UnmarshalJSON(data []byte) error

UnmarshalJSON sets *m to a copy of data.

Jump to

Keyboard shortcuts

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