json

package module
v0.0.0-...-2fc0be9 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeObject = iota
	TypeArray
	TypeBool
	TypeInteger
	TypeFloat
	TypeNull
	TypeString
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Array

type Array struct {
	Value []Node
}

func (*Array) Type

func (*Array) Type() NodeType

type Bool

type Bool struct {
	Value bool
}

func (*Bool) Type

func (*Bool) Type() NodeType

type Float

type Float struct {
	Value float64
}

func (*Float) Type

func (*Float) Type() NodeType

type Integer

type Integer struct {
	Value int64
}

func (*Integer) Type

func (*Integer) Type() NodeType

type Node

type Node interface {
	Type() NodeType
}

func Load

func Load(in []byte) (Node, error)

func TokenAsNode

func TokenAsNode(t token) Node

type NodeType

type NodeType uint8

type Null

type Null struct{}

func (*Null) Type

func (*Null) Type() NodeType

type Object

type Object struct {
	Value map[string]Node
}

func (*Object) Type

func (*Object) Type() NodeType

type String

type String struct {
	Value string
}

func (*String) Type

func (*String) Type() NodeType

Jump to

Keyboard shortcuts

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