values

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: Apache-2.0, MIT, Apache-2.0, + 1 more Imports: 6 Imported by: 3

Documentation

Index

Constants

View Source
const PkgPath = "github.com/ipld/edelweiss/values"

PkgPath is the fully-qualified name of this package.

Variables

View Source
var (
	ErrNA           = fmt.Errorf("n/a")
	ErrBounds       = fmt.Errorf("index out of bounds")
	ErrUnexpected   = fmt.Errorf("unexpected")
	ErrInvalid      = fmt.Errorf("invalid format")
	ErrNotSupported = fmt.Errorf("not supported")
	ErrNotFound     = fmt.Errorf("not found")
)

Functions

This section is empty.

Types

type Any

type Any struct {
	Value
}

func TryParseAny

func TryParseAny(n datamodel.Node) (Any, error)

func (Any) Def

func (Any) Def() defs.Def

func (*Any) Parse

func (v *Any) Parse(n datamodel.Node) error

type Bool

type Bool bool

func NewBool

func NewBool(v bool) *Bool

func TryParseBool

func TryParseBool(n datamodel.Node) (Bool, error)

func (Bool) AsBool

func (v Bool) AsBool() (bool, error)

func (Bool) AsBytes

func (Bool) AsBytes() ([]byte, error)

func (Bool) AsFloat

func (Bool) AsFloat() (float64, error)

func (Bool) AsInt

func (Bool) AsInt() (int64, error)
func (Bool) AsLink() (datamodel.Link, error)

func (Bool) AsString

func (Bool) AsString() (string, error)

func (*Bool) AssignBool

func (x *Bool) AssignBool(v bool) error

func (*Bool) AssignBytes

func (x *Bool) AssignBytes([]byte) error

func (*Bool) AssignFloat

func (x *Bool) AssignFloat(float64) error

func (*Bool) AssignInt

func (x *Bool) AssignInt(int64) error
func (x *Bool) AssignLink(datamodel.Link) error

func (*Bool) AssignNode

func (x *Bool) AssignNode(n datamodel.Node) error

func (*Bool) AssignNull

func (x *Bool) AssignNull() error

func (*Bool) AssignString

func (x *Bool) AssignString(string) error

func (*Bool) BeginList

func (x *Bool) BeginList(sizeHint int64) (datamodel.ListAssembler, error)

func (*Bool) BeginMap

func (x *Bool) BeginMap(sizeHint int64) (datamodel.MapAssembler, error)

func (Bool) Def

func (Bool) Def() defs.Def

func (Bool) IsAbsent

func (Bool) IsAbsent() bool

func (Bool) IsNull

func (Bool) IsNull() bool

func (Bool) Kind

func (Bool) Kind() datamodel.Kind

func (Bool) Length

func (Bool) Length() int64

func (Bool) ListIterator

func (Bool) ListIterator() datamodel.ListIterator

func (Bool) LookupByIndex

func (Bool) LookupByIndex(idx int64) (datamodel.Node, error)

func (Bool) LookupByNode

func (Bool) LookupByNode(key datamodel.Node) (datamodel.Node, error)

func (Bool) LookupBySegment

func (Bool) LookupBySegment(seg datamodel.PathSegment) (datamodel.Node, error)

func (Bool) LookupByString

func (Bool) LookupByString(string) (datamodel.Node, error)

func (Bool) MapIterator

func (Bool) MapIterator() datamodel.MapIterator

func (Bool) Node

func (v Bool) Node() datamodel.Node

func (*Bool) Parse

func (v *Bool) Parse(n datamodel.Node) error

func (Bool) Prototype

func (Bool) Prototype() datamodel.NodePrototype

type Byte

type Byte byte

func NewByte

func NewByte(v byte) *Byte

func TryParseByte

func TryParseByte(n datamodel.Node) (Byte, error)

func (Byte) AsBool

func (Byte) AsBool() (bool, error)

func (Byte) AsBytes

func (Byte) AsBytes() ([]byte, error)

func (Byte) AsFloat

func (Byte) AsFloat() (float64, error)

func (Byte) AsInt

func (v Byte) AsInt() (int64, error)
func (Byte) AsLink() (datamodel.Link, error)

func (Byte) AsString

func (Byte) AsString() (string, error)

func (*Byte) AssignBool

func (x *Byte) AssignBool(bool) error

func (*Byte) AssignBytes

func (x *Byte) AssignBytes([]byte) error

func (*Byte) AssignFloat

func (x *Byte) AssignFloat(float64) error

func (*Byte) AssignInt

func (x *Byte) AssignInt(v int64) error
func (x *Byte) AssignLink(datamodel.Link) error

func (*Byte) AssignNode

func (x *Byte) AssignNode(n datamodel.Node) error

func (*Byte) AssignNull

func (x *Byte) AssignNull() error

func (*Byte) AssignString

func (x *Byte) AssignString(string) error

func (*Byte) BeginList

func (x *Byte) BeginList(sizeHint int64) (datamodel.ListAssembler, error)

func (*Byte) BeginMap

func (x *Byte) BeginMap(sizeHint int64) (datamodel.MapAssembler, error)

func (Byte) Def

func (Byte) Def() defs.Def

func (Byte) IsAbsent

func (Byte) IsAbsent() bool

func (Byte) IsNull

func (Byte) IsNull() bool

func (Byte) Kind

func (Byte) Kind() datamodel.Kind

func (Byte) Length

func (Byte) Length() int64

func (Byte) ListIterator

func (Byte) ListIterator() datamodel.ListIterator

func (Byte) LookupByIndex

func (Byte) LookupByIndex(idx int64) (datamodel.Node, error)

func (Byte) LookupByNode

func (Byte) LookupByNode(key datamodel.Node) (datamodel.Node, error)

func (Byte) LookupBySegment

func (Byte) LookupBySegment(seg datamodel.PathSegment) (datamodel.Node, error)

func (Byte) LookupByString

func (Byte) LookupByString(string) (datamodel.Node, error)

func (Byte) MapIterator

func (Byte) MapIterator() datamodel.MapIterator

func (Byte) Node

func (v Byte) Node() datamodel.Node

func (*Byte) Parse

func (v *Byte) Parse(n datamodel.Node) error

func (Byte) Prototype

func (Byte) Prototype() datamodel.NodePrototype

type Bytes

type Bytes []byte

func NewBytes

func NewBytes(v []byte) *Bytes

func TryParseBytes

func TryParseBytes(n datamodel.Node) (Bytes, error)

func (Bytes) AsBool

func (Bytes) AsBool() (bool, error)

func (Bytes) AsBytes

func (v Bytes) AsBytes() ([]byte, error)

func (Bytes) AsFloat

func (Bytes) AsFloat() (float64, error)

func (Bytes) AsInt

func (Bytes) AsInt() (int64, error)
func (Bytes) AsLink() (datamodel.Link, error)

func (Bytes) AsString

func (Bytes) AsString() (string, error)

func (*Bytes) AssignBool

func (x *Bytes) AssignBool(bool) error

func (*Bytes) AssignBytes

func (x *Bytes) AssignBytes(v []byte) error

func (*Bytes) AssignFloat

func (x *Bytes) AssignFloat(float64) error

func (*Bytes) AssignInt

func (x *Bytes) AssignInt(int64) error
func (x *Bytes) AssignLink(datamodel.Link) error

func (*Bytes) AssignNode

func (x *Bytes) AssignNode(n datamodel.Node) error

func (*Bytes) AssignNull

func (x *Bytes) AssignNull() error

func (*Bytes) AssignString

func (x *Bytes) AssignString(string) error

func (*Bytes) BeginList

func (x *Bytes) BeginList(sizeHint int64) (datamodel.ListAssembler, error)

func (*Bytes) BeginMap

func (x *Bytes) BeginMap(sizeHint int64) (datamodel.MapAssembler, error)

func (Bytes) Def

func (Bytes) Def() defs.Def

func (Bytes) IsAbsent

func (Bytes) IsAbsent() bool

func (Bytes) IsNull

func (Bytes) IsNull() bool

func (Bytes) Kind

func (Bytes) Kind() datamodel.Kind

func (Bytes) Length

func (Bytes) Length() int64

func (Bytes) ListIterator

func (Bytes) ListIterator() datamodel.ListIterator

func (Bytes) LookupByIndex

func (Bytes) LookupByIndex(idx int64) (datamodel.Node, error)

func (Bytes) LookupByNode

func (Bytes) LookupByNode(key datamodel.Node) (datamodel.Node, error)

func (Bytes) LookupBySegment

func (Bytes) LookupBySegment(seg datamodel.PathSegment) (datamodel.Node, error)

func (Bytes) LookupByString

func (Bytes) LookupByString(string) (datamodel.Node, error)

func (Bytes) MapIterator

func (Bytes) MapIterator() datamodel.MapIterator

func (Bytes) Node

func (v Bytes) Node() datamodel.Node

func (*Bytes) Parse

func (v *Bytes) Parse(n datamodel.Node) error

func (Bytes) Prototype

func (Bytes) Prototype() datamodel.NodePrototype

type Char

type Char rune

func NewChar

func NewChar(v rune) *Char

func TryParseChar

func TryParseChar(n datamodel.Node) (Char, error)

func (Char) AsBool

func (Char) AsBool() (bool, error)

func (Char) AsBytes

func (Char) AsBytes() ([]byte, error)

func (Char) AsFloat

func (Char) AsFloat() (float64, error)

func (Char) AsInt

func (v Char) AsInt() (int64, error)
func (Char) AsLink() (datamodel.Link, error)

func (Char) AsString

func (Char) AsString() (string, error)

func (*Char) AssignBool

func (x *Char) AssignBool(bool) error

func (*Char) AssignBytes

func (x *Char) AssignBytes([]byte) error

func (*Char) AssignFloat

func (x *Char) AssignFloat(float64) error

func (*Char) AssignInt

func (x *Char) AssignInt(v int64) error
func (x *Char) AssignLink(datamodel.Link) error

func (*Char) AssignNode

func (x *Char) AssignNode(n datamodel.Node) error

func (*Char) AssignNull

func (x *Char) AssignNull() error

func (*Char) AssignString

func (x *Char) AssignString(string) error

func (*Char) BeginList

func (x *Char) BeginList(sizeHint int64) (datamodel.ListAssembler, error)

func (*Char) BeginMap

func (x *Char) BeginMap(sizeHint int64) (datamodel.MapAssembler, error)

func (Char) Def

func (Char) Def() defs.Def

func (Char) IsAbsent

func (Char) IsAbsent() bool

func (Char) IsNull

func (Char) IsNull() bool

func (Char) Kind

func (Char) Kind() datamodel.Kind

func (Char) Length

func (Char) Length() int64

func (Char) ListIterator

func (Char) ListIterator() datamodel.ListIterator

func (Char) LookupByIndex

func (Char) LookupByIndex(idx int64) (datamodel.Node, error)

func (Char) LookupByNode

func (Char) LookupByNode(key datamodel.Node) (datamodel.Node, error)

func (Char) LookupBySegment

func (Char) LookupBySegment(seg datamodel.PathSegment) (datamodel.Node, error)

func (Char) LookupByString

func (Char) LookupByString(string) (datamodel.Node, error)

func (Char) MapIterator

func (Char) MapIterator() datamodel.MapIterator

func (Char) Node

func (v Char) Node() datamodel.Node

func (*Char) Parse

func (v *Char) Parse(n datamodel.Node) error

func (Char) Prototype

func (Char) Prototype() datamodel.NodePrototype

type Float

type Float float64

func NewFloat

func NewFloat(v float64) *Float

func TryParseFloat

func TryParseFloat(n datamodel.Node) (Float, error)

func (Float) AsBool

func (Float) AsBool() (bool, error)

func (Float) AsBytes

func (Float) AsBytes() ([]byte, error)

func (Float) AsFloat

func (v Float) AsFloat() (float64, error)

func (Float) AsInt

func (Float) AsInt() (int64, error)
func (Float) AsLink() (datamodel.Link, error)

func (Float) AsString

func (Float) AsString() (string, error)

func (*Float) AssignBool

func (x *Float) AssignBool(bool) error

func (*Float) AssignBytes

func (x *Float) AssignBytes([]byte) error

func (*Float) AssignFloat

func (x *Float) AssignFloat(v float64) error

func (*Float) AssignInt

func (x *Float) AssignInt(int64) error
func (x *Float) AssignLink(datamodel.Link) error

func (*Float) AssignNode

func (x *Float) AssignNode(n datamodel.Node) error

func (*Float) AssignNull

func (x *Float) AssignNull() error

func (*Float) AssignString

func (x *Float) AssignString(string) error

func (*Float) BeginList

func (x *Float) BeginList(sizeHint int64) (datamodel.ListAssembler, error)

func (*Float) BeginMap

func (x *Float) BeginMap(sizeHint int64) (datamodel.MapAssembler, error)

func (Float) Def

func (Float) Def() defs.Def

func (Float) IsAbsent

func (Float) IsAbsent() bool

func (Float) IsNull

func (Float) IsNull() bool

func (Float) Kind

func (Float) Kind() datamodel.Kind

func (Float) Length

func (Float) Length() int64

func (Float) ListIterator

func (Float) ListIterator() datamodel.ListIterator

func (Float) LookupByIndex

func (Float) LookupByIndex(idx int64) (datamodel.Node, error)

func (Float) LookupByNode

func (Float) LookupByNode(key datamodel.Node) (datamodel.Node, error)

func (Float) LookupBySegment

func (Float) LookupBySegment(seg datamodel.PathSegment) (datamodel.Node, error)

func (Float) LookupByString

func (Float) LookupByString(string) (datamodel.Node, error)

func (Float) MapIterator

func (Float) MapIterator() datamodel.MapIterator

func (Float) Node

func (v Float) Node() datamodel.Node

func (*Float) Parse

func (v *Float) Parse(n datamodel.Node) error

func (Float) Prototype

func (Float) Prototype() datamodel.NodePrototype

type Int

type Int int64

func NewInt

func NewInt(v int64) *Int

func TryParseInt

func TryParseInt(n datamodel.Node) (Int, error)

func (Int) AsBool

func (Int) AsBool() (bool, error)

func (Int) AsBytes

func (Int) AsBytes() ([]byte, error)

func (Int) AsFloat

func (Int) AsFloat() (float64, error)

func (Int) AsInt

func (v Int) AsInt() (int64, error)
func (Int) AsLink() (datamodel.Link, error)

func (Int) AsString

func (Int) AsString() (string, error)

func (*Int) AssignBool

func (x *Int) AssignBool(bool) error

func (*Int) AssignBytes

func (x *Int) AssignBytes([]byte) error

func (*Int) AssignFloat

func (x *Int) AssignFloat(float64) error

func (*Int) AssignInt

func (x *Int) AssignInt(v int64) error
func (x *Int) AssignLink(datamodel.Link) error

func (*Int) AssignNode

func (x *Int) AssignNode(n datamodel.Node) error

func (*Int) AssignNull

func (x *Int) AssignNull() error

func (*Int) AssignString

func (x *Int) AssignString(string) error

func (*Int) BeginList

func (x *Int) BeginList(sizeHint int64) (datamodel.ListAssembler, error)

func (*Int) BeginMap

func (x *Int) BeginMap(sizeHint int64) (datamodel.MapAssembler, error)

func (Int) Def

func (Int) Def() defs.Def

func (Int) IsAbsent

func (Int) IsAbsent() bool

func (Int) IsNull

func (Int) IsNull() bool

func (Int) Kind

func (Int) Kind() datamodel.Kind

func (Int) Length

func (Int) Length() int64

func (Int) ListIterator

func (Int) ListIterator() datamodel.ListIterator

func (Int) LookupByIndex

func (Int) LookupByIndex(idx int64) (datamodel.Node, error)

func (Int) LookupByNode

func (Int) LookupByNode(key datamodel.Node) (datamodel.Node, error)

func (Int) LookupBySegment

func (Int) LookupBySegment(seg datamodel.PathSegment) (datamodel.Node, error)

func (Int) LookupByString

func (Int) LookupByString(string) (datamodel.Node, error)

func (Int) MapIterator

func (Int) MapIterator() datamodel.MapIterator

func (Int) Node

func (v Int) Node() datamodel.Node

func (*Int) Parse

func (v *Int) Parse(n datamodel.Node) error

func (Int) Prototype

func (Int) Prototype() datamodel.NodePrototype

type KeyValue

type KeyValue struct {
	Key   Any
	Value Any
}
type Link cid.Cid

Link models a link to any type.

func TryParseLink(n datamodel.Node) (Link, error)

func (Link) AsBool

func (Link) AsBool() (bool, error)

func (Link) AsBytes

func (Link) AsBytes() ([]byte, error)

func (Link) AsFloat

func (Link) AsFloat() (float64, error)

func (Link) AsInt

func (v Link) AsInt() (int64, error)
func (v Link) AsLink() (datamodel.Link, error)

func (Link) AsString

func (Link) AsString() (string, error)

func (Link) Def

func (Link) Def() defs.Def

func (Link) IsAbsent

func (Link) IsAbsent() bool

func (Link) IsNull

func (Link) IsNull() bool

func (Link) Kind

func (Link) Kind() datamodel.Kind

func (Link) Length

func (Link) Length() int64

func (Link) ListIterator

func (Link) ListIterator() datamodel.ListIterator

func (Link) LookupByIndex

func (Link) LookupByIndex(idx int64) (datamodel.Node, error)

func (Link) LookupByNode

func (Link) LookupByNode(key datamodel.Node) (datamodel.Node, error)

func (Link) LookupBySegment

func (Link) LookupBySegment(seg datamodel.PathSegment) (datamodel.Node, error)

func (Link) LookupByString

func (Link) LookupByString(string) (datamodel.Node, error)

func (Link) MapIterator

func (Link) MapIterator() datamodel.MapIterator

func (Link) Node

func (v Link) Node() datamodel.Node

func (*Link) Parse

func (v *Link) Parse(n datamodel.Node) error

func (Link) Prototype

func (Link) Prototype() datamodel.NodePrototype

type List

type List []Any

func TryParseList

func TryParseList(n datamodel.Node) (List, error)

func (List) AsBool

func (v List) AsBool() (bool, error)

func (List) AsBytes

func (List) AsBytes() ([]byte, error)

func (List) AsFloat

func (List) AsFloat() (float64, error)

func (List) AsInt

func (List) AsInt() (int64, error)
func (List) AsLink() (datamodel.Link, error)

func (List) AsString

func (List) AsString() (string, error)

func (List) Def

func (List) Def() defs.Def

func (List) IsAbsent

func (List) IsAbsent() bool

func (List) IsNull

func (List) IsNull() bool

func (List) Kind

func (List) Kind() datamodel.Kind

func (List) Length

func (v List) Length() int64

func (List) ListIterator

func (v List) ListIterator() datamodel.ListIterator

func (List) LookupByIndex

func (v List) LookupByIndex(i int64) (datamodel.Node, error)

func (List) LookupByNode

func (List) LookupByNode(key datamodel.Node) (datamodel.Node, error)

func (List) LookupBySegment

func (v List) LookupBySegment(seg datamodel.PathSegment) (datamodel.Node, error)

func (List) LookupByString

func (List) LookupByString(string) (datamodel.Node, error)

func (List) MapIterator

func (List) MapIterator() datamodel.MapIterator

func (List) Node

func (v List) Node() datamodel.Node

func (*List) Parse

func (v *List) Parse(n datamodel.Node) error

func (List) Prototype

func (List) Prototype() datamodel.NodePrototype

type Map

type Map []KeyValue

func TryParseMap

func TryParseMap(n datamodel.Node) (Map, error)

func (Map) AsBool

func (v Map) AsBool() (bool, error)

func (Map) AsBytes

func (Map) AsBytes() ([]byte, error)

func (Map) AsFloat

func (Map) AsFloat() (float64, error)

func (Map) AsInt

func (Map) AsInt() (int64, error)
func (Map) AsLink() (datamodel.Link, error)

func (Map) AsString

func (Map) AsString() (string, error)

func (Map) Def

func (v Map) Def() defs.Def

func (Map) IsAbsent

func (Map) IsAbsent() bool

func (Map) IsNull

func (Map) IsNull() bool

func (Map) Kind

func (Map) Kind() datamodel.Kind

func (Map) Length

func (v Map) Length() int64

func (Map) ListIterator

func (v Map) ListIterator() datamodel.ListIterator

func (Map) LookupByIndex

func (v Map) LookupByIndex(i int64) (datamodel.Node, error)

func (Map) LookupByNode

func (v Map) LookupByNode(key datamodel.Node) (datamodel.Node, error)

func (Map) LookupBySegment

func (v Map) LookupBySegment(seg datamodel.PathSegment) (datamodel.Node, error)

func (Map) LookupByString

func (v Map) LookupByString(s string) (datamodel.Node, error)

func (Map) MapIterator

func (v Map) MapIterator() datamodel.MapIterator

func (Map) Node

func (v Map) Node() datamodel.Node

func (*Map) Parse

func (v *Map) Parse(n datamodel.Node) error

func (Map) Prototype

func (Map) Prototype() datamodel.NodePrototype

type Nothing

type Nothing struct{}

func TryParseNothing

func TryParseNothing(n datamodel.Node) (Nothing, error)

func (Nothing) AsBool

func (v Nothing) AsBool() (bool, error)

func (Nothing) AsBytes

func (Nothing) AsBytes() ([]byte, error)

func (Nothing) AsFloat

func (Nothing) AsFloat() (float64, error)

func (Nothing) AsInt

func (Nothing) AsInt() (int64, error)
func (Nothing) AsLink() (datamodel.Link, error)

func (Nothing) AsString

func (Nothing) AsString() (string, error)

func (*Nothing) AssignBool

func (x *Nothing) AssignBool(bool) error

func (*Nothing) AssignBytes

func (x *Nothing) AssignBytes([]byte) error

func (*Nothing) AssignFloat

func (x *Nothing) AssignFloat(float64) error

func (*Nothing) AssignInt

func (x *Nothing) AssignInt(v int64) error
func (x *Nothing) AssignLink(datamodel.Link) error

func (*Nothing) AssignNode

func (x *Nothing) AssignNode(n datamodel.Node) error

func (*Nothing) AssignNull

func (x *Nothing) AssignNull() error

func (*Nothing) AssignString

func (x *Nothing) AssignString(string) error

func (*Nothing) BeginList

func (x *Nothing) BeginList(sizeHint int64) (datamodel.ListAssembler, error)

func (*Nothing) BeginMap

func (x *Nothing) BeginMap(sizeHint int64) (datamodel.MapAssembler, error)

func (Nothing) Def

func (Nothing) Def() defs.Def

func (Nothing) IsAbsent

func (Nothing) IsAbsent() bool

func (Nothing) IsNull

func (Nothing) IsNull() bool

func (Nothing) Kind

func (Nothing) Kind() datamodel.Kind

func (Nothing) Length

func (Nothing) Length() int64

func (Nothing) ListIterator

func (Nothing) ListIterator() datamodel.ListIterator

func (Nothing) LookupByIndex

func (Nothing) LookupByIndex(idx int64) (datamodel.Node, error)

func (Nothing) LookupByNode

func (Nothing) LookupByNode(key datamodel.Node) (datamodel.Node, error)

func (Nothing) LookupBySegment

func (Nothing) LookupBySegment(seg datamodel.PathSegment) (datamodel.Node, error)

func (Nothing) LookupByString

func (Nothing) LookupByString(string) (datamodel.Node, error)

func (Nothing) MapIterator

func (Nothing) MapIterator() datamodel.MapIterator

func (Nothing) Node

func (v Nothing) Node() datamodel.Node

func (*Nothing) Parse

func (v *Nothing) Parse(n datamodel.Node) error

func (Nothing) Prototype

func (Nothing) Prototype() datamodel.NodePrototype

type ParseFunc

type ParseFunc func(datamodel.Node) error

type Parser

type Parser interface {
	Parse(datamodel.Node) error
}

type String

type String string

func NewString

func NewString(v string) *String

func TryParseString

func TryParseString(n datamodel.Node) (String, error)

func (String) AsBool

func (String) AsBool() (bool, error)

func (String) AsBytes

func (String) AsBytes() ([]byte, error)

func (String) AsFloat

func (String) AsFloat() (float64, error)

func (String) AsInt

func (String) AsInt() (int64, error)
func (String) AsLink() (datamodel.Link, error)

func (String) AsString

func (v String) AsString() (string, error)

func (*String) AssignBool

func (x *String) AssignBool(bool) error

func (*String) AssignBytes

func (x *String) AssignBytes([]byte) error

func (*String) AssignFloat

func (x *String) AssignFloat(float64) error

func (*String) AssignInt

func (x *String) AssignInt(int64) error
func (x *String) AssignLink(datamodel.Link) error

func (*String) AssignNode

func (x *String) AssignNode(n datamodel.Node) error

func (*String) AssignNull

func (x *String) AssignNull() error

func (*String) AssignString

func (x *String) AssignString(v string) error

func (*String) BeginList

func (x *String) BeginList(sizeHint int64) (datamodel.ListAssembler, error)

func (*String) BeginMap

func (x *String) BeginMap(sizeHint int64) (datamodel.MapAssembler, error)

func (String) Def

func (String) Def() defs.Def

func (String) IsAbsent

func (String) IsAbsent() bool

func (String) IsNull

func (String) IsNull() bool

func (String) Kind

func (String) Kind() datamodel.Kind

func (String) Length

func (String) Length() int64

func (String) ListIterator

func (String) ListIterator() datamodel.ListIterator

func (String) LookupByIndex

func (String) LookupByIndex(idx int64) (datamodel.Node, error)

func (String) LookupByNode

func (String) LookupByNode(key datamodel.Node) (datamodel.Node, error)

func (String) LookupBySegment

func (String) LookupBySegment(seg datamodel.PathSegment) (datamodel.Node, error)

func (String) LookupByString

func (String) LookupByString(string) (datamodel.Node, error)

func (String) MapIterator

func (String) MapIterator() datamodel.MapIterator

func (String) Node

func (v String) Node() datamodel.Node

func (*String) Parse

func (v *String) Parse(n datamodel.Node) error

func (String) Prototype

func (String) Prototype() datamodel.NodePrototype

type Value

type Value interface {
	Def() defs.Def
	Node() datamodel.Node
}

Jump to

Keyboard shortcuts

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