json

package
v0.0.0-...-1dacd80 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	True  = Bool(true)
	False = Bool(false)
	Null  = (*Value)(nil)
)

Functions

func JsonArray

func JsonArray() parser.Func[rune, []*Value]

func JsonNumber

func JsonNumber() parser.Func[rune, float64]

func JsonObject

func JsonObject() parser.Func[rune, map[string]*Value]

func JsonString

func JsonString() parser.Func[rune, string]

func Parser

func Parser() parser.Func[rune, *Value]

Types

type Value

type Value struct {
	Number *float64
	String *string
	Bool   *bool
	Object map[string]*Value
	Array  []*Value
}

func Array

func Array(a []*Value) *Value

func ArrayOf

func ArrayOf(a ...*Value) *Value

func Bool

func Bool(b bool) *Value

func Number

func Number(f float64) *Value

func Object

func Object(m map[string]*Value) *Value

func String

func String(s string) *Value

Jump to

Keyboard shortcuts

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