jsonvalue

package
v0.0.0-...-fe67f73 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type V

type V json.RawMessage

func (V) Array

func (v V) Array() (values []Value, err error)

func (V) Bool

func (v V) Bool() (b bool, err error)

func (V) Float

func (v V) Float() (f float32, err error)

func (V) Int

func (v V) Int() (i int, err error)

func (V) Object

func (v V) Object() (object map[string]Value, err error)

func (V) String

func (v V) String() (s string, err error)

func (V) To

func (v V) To(x interface{}) error

type Value

type Value interface {
	To(interface{}) error
	Float() (float32, error)
	Int() (int, error)
	String() (string, error)
	Bool() (bool, error)
	Object() (map[string]Value, error)
	Array() ([]Value, error)
}

Jump to

Keyboard shortcuts

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