Documentation ¶
Index ¶
- func SplitExact(s string, sep string, count int) ([]string, error)
- func SplitN(s, sep string, n int) []string
- type Bool
- func (x Bool) AsBytes() ([]byte, error)
- func (x Bool) AsFloat() (float64, error)
- func (x Bool) AsInt() (int64, error)
- func (x Bool) AsLink() (datamodel.Link, error)
- func (x Bool) AsString() (string, error)
- func (Bool) IsAbsent() bool
- func (Bool) IsNull() bool
- func (Bool) Kind() datamodel.Kind
- func (Bool) Length() int64
- func (Bool) ListIterator() datamodel.ListIterator
- func (x Bool) LookupByIndex(idx int64) (datamodel.Node, error)
- func (x Bool) LookupByNode(key datamodel.Node) (datamodel.Node, error)
- func (x Bool) LookupBySegment(datamodel.PathSegment) (datamodel.Node, error)
- func (x Bool) LookupByString(string) (datamodel.Node, error)
- func (Bool) MapIterator() datamodel.MapIterator
- type BoolAssembler
- func (x BoolAssembler) AssignBytes([]byte) error
- func (x BoolAssembler) AssignFloat(float64) error
- func (x BoolAssembler) AssignInt(int64) error
- func (x BoolAssembler) AssignLink(datamodel.Link) error
- func (x BoolAssembler) AssignNull() error
- func (x BoolAssembler) AssignString(string) error
- func (x BoolAssembler) BeginList(sizeHint int64) (datamodel.ListAssembler, error)
- func (x BoolAssembler) BeginMap(sizeHint int64) (datamodel.MapAssembler, error)
- type Bytes
- func (x Bytes) AsBool() (bool, error)
- func (x Bytes) AsFloat() (float64, error)
- func (x Bytes) AsInt() (int64, error)
- func (x Bytes) AsLink() (datamodel.Link, error)
- func (x Bytes) AsString() (string, error)
- func (Bytes) IsAbsent() bool
- func (Bytes) IsNull() bool
- func (Bytes) Kind() datamodel.Kind
- func (Bytes) Length() int64
- func (Bytes) ListIterator() datamodel.ListIterator
- func (x Bytes) LookupByIndex(idx int64) (datamodel.Node, error)
- func (x Bytes) LookupByNode(key datamodel.Node) (datamodel.Node, error)
- func (x Bytes) LookupBySegment(datamodel.PathSegment) (datamodel.Node, error)
- func (x Bytes) LookupByString(string) (datamodel.Node, error)
- func (Bytes) MapIterator() datamodel.MapIterator
- type BytesAssembler
- func (x BytesAssembler) AssignBool(bool) error
- func (x BytesAssembler) AssignFloat(float64) error
- func (x BytesAssembler) AssignInt(int64) error
- func (x BytesAssembler) AssignLink(datamodel.Link) error
- func (x BytesAssembler) AssignNull() error
- func (x BytesAssembler) AssignString(string) error
- func (x BytesAssembler) BeginList(sizeHint int64) (datamodel.ListAssembler, error)
- func (x BytesAssembler) BeginMap(sizeHint int64) (datamodel.MapAssembler, error)
- type Float
- func (x Float) AsBool() (bool, error)
- func (x Float) AsBytes() ([]byte, error)
- func (x Float) AsInt() (int64, error)
- func (x Float) AsLink() (datamodel.Link, error)
- func (x Float) AsString() (string, error)
- func (Float) IsAbsent() bool
- func (Float) IsNull() bool
- func (Float) Kind() datamodel.Kind
- func (Float) Length() int64
- func (Float) ListIterator() datamodel.ListIterator
- func (x Float) LookupByIndex(idx int64) (datamodel.Node, error)
- func (x Float) LookupByNode(key datamodel.Node) (datamodel.Node, error)
- func (x Float) LookupBySegment(datamodel.PathSegment) (datamodel.Node, error)
- func (x Float) LookupByString(string) (datamodel.Node, error)
- func (Float) MapIterator() datamodel.MapIterator
- type FloatAssembler
- func (x FloatAssembler) AssignBool(bool) error
- func (x FloatAssembler) AssignBytes([]byte) error
- func (x FloatAssembler) AssignInt(int64) error
- func (x FloatAssembler) AssignLink(datamodel.Link) error
- func (x FloatAssembler) AssignNull() error
- func (x FloatAssembler) AssignString(string) error
- func (x FloatAssembler) BeginList(sizeHint int64) (datamodel.ListAssembler, error)
- func (x FloatAssembler) BeginMap(sizeHint int64) (datamodel.MapAssembler, error)
- type Int
- func (x Int) AsBool() (bool, error)
- func (x Int) AsBytes() ([]byte, error)
- func (x Int) AsFloat() (float64, error)
- func (x Int) AsLink() (datamodel.Link, error)
- func (x Int) AsString() (string, error)
- func (Int) IsAbsent() bool
- func (Int) IsNull() bool
- func (Int) Kind() datamodel.Kind
- func (Int) Length() int64
- func (Int) ListIterator() datamodel.ListIterator
- func (x Int) LookupByIndex(idx int64) (datamodel.Node, error)
- func (x Int) LookupByNode(key datamodel.Node) (datamodel.Node, error)
- func (x Int) LookupBySegment(datamodel.PathSegment) (datamodel.Node, error)
- func (x Int) LookupByString(string) (datamodel.Node, error)
- func (Int) MapIterator() datamodel.MapIterator
- type IntAssembler
- func (x IntAssembler) AssignBool(bool) error
- func (x IntAssembler) AssignBytes([]byte) error
- func (x IntAssembler) AssignFloat(float64) error
- func (x IntAssembler) AssignLink(datamodel.Link) error
- func (x IntAssembler) AssignNull() error
- func (x IntAssembler) AssignString(string) error
- func (x IntAssembler) BeginList(sizeHint int64) (datamodel.ListAssembler, error)
- func (x IntAssembler) BeginMap(sizeHint int64) (datamodel.MapAssembler, error)
- type Link
- func (x Link) AsBool() (bool, error)
- func (x Link) AsBytes() ([]byte, error)
- func (x Link) AsFloat() (float64, error)
- func (x Link) AsInt() (int64, error)
- func (x Link) AsString() (string, error)
- func (Link) IsAbsent() bool
- func (Link) IsNull() bool
- func (Link) Kind() datamodel.Kind
- func (Link) Length() int64
- func (Link) ListIterator() datamodel.ListIterator
- func (x Link) LookupByIndex(idx int64) (datamodel.Node, error)
- func (x Link) LookupByNode(key datamodel.Node) (datamodel.Node, error)
- func (x Link) LookupBySegment(datamodel.PathSegment) (datamodel.Node, error)
- func (x Link) LookupByString(string) (datamodel.Node, error)
- func (Link) MapIterator() datamodel.MapIterator
- type LinkAssembler
- func (x LinkAssembler) AssignBool(bool) error
- func (x LinkAssembler) AssignBytes([]byte) error
- func (x LinkAssembler) AssignFloat(float64) error
- func (x LinkAssembler) AssignInt(int64) error
- func (x LinkAssembler) AssignNull() error
- func (x LinkAssembler) AssignString(string) error
- func (x LinkAssembler) BeginList(sizeHint int64) (datamodel.ListAssembler, error)
- func (x LinkAssembler) BeginMap(sizeHint int64) (datamodel.MapAssembler, error)
- type List
- func (x List) AsBool() (bool, error)
- func (x List) AsBytes() ([]byte, error)
- func (x List) AsFloat() (float64, error)
- func (x List) AsInt() (int64, error)
- func (x List) AsLink() (datamodel.Link, error)
- func (x List) AsString() (string, error)
- func (List) IsAbsent() bool
- func (List) IsNull() bool
- func (List) Kind() datamodel.Kind
- func (x List) LookupByNode(key datamodel.Node) (datamodel.Node, error)
- func (x List) LookupByString(string) (datamodel.Node, error)
- func (List) MapIterator() datamodel.MapIterator
- type ListAssembler
- func (x ListAssembler) AssignBool(bool) error
- func (x ListAssembler) AssignBytes([]byte) error
- func (x ListAssembler) AssignFloat(float64) error
- func (x ListAssembler) AssignInt(int64) error
- func (x ListAssembler) AssignLink(datamodel.Link) error
- func (x ListAssembler) AssignNull() error
- func (x ListAssembler) AssignString(string) error
- func (x ListAssembler) BeginMap(sizeHint int64) (datamodel.MapAssembler, error)
- type Map
- func (x Map) AsBool() (bool, error)
- func (x Map) AsBytes() ([]byte, error)
- func (x Map) AsFloat() (float64, error)
- func (x Map) AsInt() (int64, error)
- func (x Map) AsLink() (datamodel.Link, error)
- func (x Map) AsString() (string, error)
- func (Map) IsAbsent() bool
- func (Map) IsNull() bool
- func (Map) Kind() datamodel.Kind
- func (Map) ListIterator() datamodel.ListIterator
- func (x Map) LookupByIndex(idx int64) (datamodel.Node, error)
- type MapAssembler
- func (x MapAssembler) AssignBool(bool) error
- func (x MapAssembler) AssignBytes([]byte) error
- func (x MapAssembler) AssignFloat(float64) error
- func (x MapAssembler) AssignInt(int64) error
- func (x MapAssembler) AssignLink(datamodel.Link) error
- func (x MapAssembler) AssignNull() error
- func (x MapAssembler) AssignString(string) error
- func (x MapAssembler) BeginList(sizeHint int64) (datamodel.ListAssembler, error)
- type String
- func (x String) AsBool() (bool, error)
- func (x String) AsBytes() ([]byte, error)
- func (x String) AsFloat() (float64, error)
- func (x String) AsInt() (int64, error)
- func (x String) AsLink() (datamodel.Link, error)
- func (String) IsAbsent() bool
- func (String) IsNull() bool
- func (String) Kind() datamodel.Kind
- func (String) Length() int64
- func (String) ListIterator() datamodel.ListIterator
- func (x String) LookupByIndex(idx int64) (datamodel.Node, error)
- func (x String) LookupByNode(key datamodel.Node) (datamodel.Node, error)
- func (x String) LookupBySegment(datamodel.PathSegment) (datamodel.Node, error)
- func (x String) LookupByString(string) (datamodel.Node, error)
- func (String) MapIterator() datamodel.MapIterator
- type StringAssembler
- func (x StringAssembler) AssignBool(bool) error
- func (x StringAssembler) AssignBytes([]byte) error
- func (x StringAssembler) AssignFloat(float64) error
- func (x StringAssembler) AssignInt(int64) error
- func (x StringAssembler) AssignLink(datamodel.Link) error
- func (x StringAssembler) AssignNull() error
- func (x StringAssembler) BeginList(sizeHint int64) (datamodel.ListAssembler, error)
- func (x StringAssembler) BeginMap(sizeHint int64) (datamodel.MapAssembler, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SplitExact ¶ added in v0.4.0
SplitExact is much like strings.Split but will error if the number of substrings is other than the expected count.
SplitExact is used by the 'stringjoin' representation for structs.
The 'count' parameter is a length. In other words, if you expect the zero'th index to be present in the result, you should ask for a count of at least '1'. Using this function with 'count' less than 2 is rather strange.
Types ¶
type Bool ¶
type Bool struct {
TypeName string
}
Bool can be embedded in a struct to provide all the methods that have fixed output for any int-kinded nodes. (Mostly this includes all the methods which simply return ErrWrongKind.) Other methods will still need to be implemented to finish conforming to Node.
To conserve memory and get a TypeName in errors without embedding, write methods on your type with a body that simply initializes this struct and immediately uses the relevant method; this is more verbose in source, but compiles to a tighter result: in memory, there's no embed; and in runtime, the calls will be inlined and thus have no cost in execution time.
func (Bool) ListIterator ¶
func (Bool) ListIterator() datamodel.ListIterator
func (Bool) LookupByIndex ¶ added in v0.5.0
func (Bool) LookupByNode ¶ added in v0.5.0
func (Bool) LookupBySegment ¶ added in v0.5.0
func (Bool) LookupByString ¶ added in v0.5.0
func (Bool) MapIterator ¶
func (Bool) MapIterator() datamodel.MapIterator
type BoolAssembler ¶
type BoolAssembler struct {
TypeName string
}
BoolAssembler has similar purpose as Bool, but for (you guessed it) the NodeAssembler interface rather than the Node interface.
func (BoolAssembler) AssignBytes ¶
func (x BoolAssembler) AssignBytes([]byte) error
func (BoolAssembler) AssignFloat ¶
func (x BoolAssembler) AssignFloat(float64) error
func (BoolAssembler) AssignInt ¶
func (x BoolAssembler) AssignInt(int64) error
func (BoolAssembler) AssignLink ¶
func (x BoolAssembler) AssignLink(datamodel.Link) error
func (BoolAssembler) AssignNull ¶
func (x BoolAssembler) AssignNull() error
func (BoolAssembler) AssignString ¶
func (x BoolAssembler) AssignString(string) error
func (BoolAssembler) BeginList ¶
func (x BoolAssembler) BeginList(sizeHint int64) (datamodel.ListAssembler, error)
func (BoolAssembler) BeginMap ¶
func (x BoolAssembler) BeginMap(sizeHint int64) (datamodel.MapAssembler, error)
type Bytes ¶
type Bytes struct {
TypeName string
}
Bytes can be embedded in a struct to provide all the methods that have fixed output for any int-kinded nodes. (Mostly this includes all the methods which simply return ErrWrongKind.) Other methods will still need to be implemented to finish conforming to Node.
To conserve memory and get a TypeName in errors without embedding, write methods on your type with a body that simply initializes this struct and immediately uses the relevant method; this is more verbose in source, but compiles to a tighter result: in memory, there's no embed; and in runtime, the calls will be inlined and thus have no cost in execution time.
func (Bytes) ListIterator ¶
func (Bytes) ListIterator() datamodel.ListIterator
func (Bytes) LookupByIndex ¶ added in v0.5.0
func (Bytes) LookupByNode ¶ added in v0.5.0
func (Bytes) LookupBySegment ¶ added in v0.5.0
func (Bytes) LookupByString ¶ added in v0.5.0
func (Bytes) MapIterator ¶
func (Bytes) MapIterator() datamodel.MapIterator
type BytesAssembler ¶
type BytesAssembler struct {
TypeName string
}
BytesAssembler has similar purpose as Bytes, but for (you guessed it) the NodeAssembler interface rather than the Node interface.
func (BytesAssembler) AssignBool ¶
func (x BytesAssembler) AssignBool(bool) error
func (BytesAssembler) AssignFloat ¶
func (x BytesAssembler) AssignFloat(float64) error
func (BytesAssembler) AssignInt ¶
func (x BytesAssembler) AssignInt(int64) error
func (BytesAssembler) AssignLink ¶
func (x BytesAssembler) AssignLink(datamodel.Link) error
func (BytesAssembler) AssignNull ¶
func (x BytesAssembler) AssignNull() error
func (BytesAssembler) AssignString ¶
func (x BytesAssembler) AssignString(string) error
func (BytesAssembler) BeginList ¶
func (x BytesAssembler) BeginList(sizeHint int64) (datamodel.ListAssembler, error)
func (BytesAssembler) BeginMap ¶
func (x BytesAssembler) BeginMap(sizeHint int64) (datamodel.MapAssembler, error)
type Float ¶
type Float struct {
TypeName string
}
Float can be embedded in a struct to provide all the methods that have fixed output for any int-kinded nodes. (Mostly this includes all the methods which simply return ErrWrongKind.) Other methods will still need to be implemented to finish conforming to Node.
To conserve memory and get a TypeName in errors without embedding, write methods on your type with a body that simply initializes this struct and immediately uses the relevant method; this is more verbose in source, but compiles to a tighter result: in memory, there's no embed; and in runtime, the calls will be inlined and thus have no cost in execution time.
func (Float) ListIterator ¶
func (Float) ListIterator() datamodel.ListIterator
func (Float) LookupByIndex ¶ added in v0.5.0
func (Float) LookupByNode ¶ added in v0.5.0
func (Float) LookupBySegment ¶ added in v0.5.0
func (Float) LookupByString ¶ added in v0.5.0
func (Float) MapIterator ¶
func (Float) MapIterator() datamodel.MapIterator
type FloatAssembler ¶
type FloatAssembler struct {
TypeName string
}
FloatAssembler has similar purpose as Float, but for (you guessed it) the NodeAssembler interface rather than the Node interface.
func (FloatAssembler) AssignBool ¶
func (x FloatAssembler) AssignBool(bool) error
func (FloatAssembler) AssignBytes ¶
func (x FloatAssembler) AssignBytes([]byte) error
func (FloatAssembler) AssignInt ¶
func (x FloatAssembler) AssignInt(int64) error
func (FloatAssembler) AssignLink ¶
func (x FloatAssembler) AssignLink(datamodel.Link) error
func (FloatAssembler) AssignNull ¶
func (x FloatAssembler) AssignNull() error
func (FloatAssembler) AssignString ¶
func (x FloatAssembler) AssignString(string) error
func (FloatAssembler) BeginList ¶
func (x FloatAssembler) BeginList(sizeHint int64) (datamodel.ListAssembler, error)
func (FloatAssembler) BeginMap ¶
func (x FloatAssembler) BeginMap(sizeHint int64) (datamodel.MapAssembler, error)
type Int ¶
type Int struct {
TypeName string
}
Int can be embedded in a struct to provide all the methods that have fixed output for any int-kinded nodes. (Mostly this includes all the methods which simply return ErrWrongKind.) Other methods will still need to be implemented to finish conforming to Node.
To conserve memory and get a TypeName in errors without embedding, write methods on your type with a body that simply initializes this struct and immediately uses the relevant method; this is more verbose in source, but compiles to a tighter result: in memory, there's no embed; and in runtime, the calls will be inlined and thus have no cost in execution time.
func (Int) ListIterator ¶
func (Int) ListIterator() datamodel.ListIterator
func (Int) LookupByIndex ¶ added in v0.5.0
func (Int) LookupByNode ¶ added in v0.5.0
func (Int) LookupBySegment ¶ added in v0.5.0
func (Int) LookupByString ¶ added in v0.5.0
func (Int) MapIterator ¶
func (Int) MapIterator() datamodel.MapIterator
type IntAssembler ¶
type IntAssembler struct {
TypeName string
}
IntAssembler has similar purpose as Int, but for (you guessed it) the NodeAssembler interface rather than the Node interface.
func (IntAssembler) AssignBool ¶
func (x IntAssembler) AssignBool(bool) error
func (IntAssembler) AssignBytes ¶
func (x IntAssembler) AssignBytes([]byte) error
func (IntAssembler) AssignFloat ¶
func (x IntAssembler) AssignFloat(float64) error
func (IntAssembler) AssignLink ¶
func (x IntAssembler) AssignLink(datamodel.Link) error
func (IntAssembler) AssignNull ¶
func (x IntAssembler) AssignNull() error
func (IntAssembler) AssignString ¶
func (x IntAssembler) AssignString(string) error
func (IntAssembler) BeginList ¶
func (x IntAssembler) BeginList(sizeHint int64) (datamodel.ListAssembler, error)
func (IntAssembler) BeginMap ¶
func (x IntAssembler) BeginMap(sizeHint int64) (datamodel.MapAssembler, error)
type Link ¶
type Link struct {
TypeName string
}
Link can be embedded in a struct to provide all the methods that have fixed output for any int-kinded nodes. (Mostly this includes all the methods which simply return ErrWrongKind.) Other methods will still need to be implemented to finish conforming to Node.
To conserve memory and get a TypeName in errors without embedding, write methods on your type with a body that simply initializes this struct and immediately uses the relevant method; this is more verbose in source, but compiles to a tighter result: in memory, there's no embed; and in runtime, the calls will be inlined and thus have no cost in execution time.
func (Link) ListIterator ¶
func (Link) ListIterator() datamodel.ListIterator
func (Link) LookupByIndex ¶ added in v0.5.0
func (Link) LookupByNode ¶ added in v0.5.0
func (Link) LookupBySegment ¶ added in v0.5.0
func (Link) LookupByString ¶ added in v0.5.0
func (Link) MapIterator ¶
func (Link) MapIterator() datamodel.MapIterator
type LinkAssembler ¶
type LinkAssembler struct {
TypeName string
}
LinkAssembler has similar purpose as Link, but for (you guessed it) the NodeAssembler interface rather than the Node interface.
func (LinkAssembler) AssignBool ¶
func (x LinkAssembler) AssignBool(bool) error
func (LinkAssembler) AssignBytes ¶
func (x LinkAssembler) AssignBytes([]byte) error
func (LinkAssembler) AssignFloat ¶
func (x LinkAssembler) AssignFloat(float64) error
func (LinkAssembler) AssignInt ¶
func (x LinkAssembler) AssignInt(int64) error
func (LinkAssembler) AssignNull ¶
func (x LinkAssembler) AssignNull() error
func (LinkAssembler) AssignString ¶
func (x LinkAssembler) AssignString(string) error
func (LinkAssembler) BeginList ¶
func (x LinkAssembler) BeginList(sizeHint int64) (datamodel.ListAssembler, error)
func (LinkAssembler) BeginMap ¶
func (x LinkAssembler) BeginMap(sizeHint int64) (datamodel.MapAssembler, error)
type List ¶
type List struct {
TypeName string
}
List can be embedded in a struct to provide all the methods that have fixed output for any int-kinded nodes. (Mostly this includes all the methods which simply return ErrWrongKind.) Other methods will still need to be implemented to finish conforming to Node.
To conserve memory and get a TypeName in errors without embedding, write methods on your type with a body that simply initializes this struct and immediately uses the relevant method; this is more verbose in source, but compiles to a tighter result: in memory, there's no embed; and in runtime, the calls will be inlined and thus have no cost in execution time.
func (List) LookupByNode ¶ added in v0.5.0
func (List) LookupByString ¶ added in v0.5.0
func (List) MapIterator ¶
func (List) MapIterator() datamodel.MapIterator
type ListAssembler ¶
type ListAssembler struct {
TypeName string
}
ListAssembler has similar purpose as List, but for (you guessed it) the NodeAssembler interface rather than the Node interface.
func (ListAssembler) AssignBool ¶
func (x ListAssembler) AssignBool(bool) error
func (ListAssembler) AssignBytes ¶
func (x ListAssembler) AssignBytes([]byte) error
func (ListAssembler) AssignFloat ¶
func (x ListAssembler) AssignFloat(float64) error
func (ListAssembler) AssignInt ¶
func (x ListAssembler) AssignInt(int64) error
func (ListAssembler) AssignLink ¶
func (x ListAssembler) AssignLink(datamodel.Link) error
func (ListAssembler) AssignNull ¶
func (x ListAssembler) AssignNull() error
func (ListAssembler) AssignString ¶
func (x ListAssembler) AssignString(string) error
func (ListAssembler) BeginMap ¶
func (x ListAssembler) BeginMap(sizeHint int64) (datamodel.MapAssembler, error)
type Map ¶
type Map struct {
TypeName string
}
Map can be embedded in a struct to provide all the methods that have fixed output for any map-kinded nodes. (Mostly this includes all the methods which simply return ErrWrongKind.) Other methods will still need to be implemented to finish conforming to Node.
To conserve memory and get a TypeName in errors without embedding, write methods on your type with a body that simply initializes this struct and immediately uses the relevant method; this is more verbose in source, but compiles to a tighter result: in memory, there's no embed; and in runtime, the calls will be inlined and thus have no cost in execution time.
func (Map) ListIterator ¶
func (Map) ListIterator() datamodel.ListIterator
type MapAssembler ¶
type MapAssembler struct {
TypeName string
}
MapAssembler has similar purpose as Map, but for (you guessed it) the NodeAssembler interface rather than the Node interface.
func (MapAssembler) AssignBool ¶
func (x MapAssembler) AssignBool(bool) error
func (MapAssembler) AssignBytes ¶
func (x MapAssembler) AssignBytes([]byte) error
func (MapAssembler) AssignFloat ¶
func (x MapAssembler) AssignFloat(float64) error
func (MapAssembler) AssignInt ¶
func (x MapAssembler) AssignInt(int64) error
func (MapAssembler) AssignLink ¶
func (x MapAssembler) AssignLink(datamodel.Link) error
func (MapAssembler) AssignNull ¶
func (x MapAssembler) AssignNull() error
func (MapAssembler) AssignString ¶
func (x MapAssembler) AssignString(string) error
func (MapAssembler) BeginList ¶
func (x MapAssembler) BeginList(sizeHint int64) (datamodel.ListAssembler, error)
type String ¶
type String struct {
TypeName string
}
String can be embedded in a struct to provide all the methods that have fixed output for any string-kinded nodes. (Mostly this includes all the methods which simply return ErrWrongKind.) Other methods will still need to be implemented to finish conforming to Node.
To conserve memory and get a TypeName in errors without embedding, write methods on your type with a body that simply initializes this struct and immediately uses the relevant method; this is more verbose in source, but compiles to a tighter result: in memory, there's no embed; and in runtime, the calls will be inlined and thus have no cost in execution time.
func (String) ListIterator ¶
func (String) ListIterator() datamodel.ListIterator
func (String) LookupByIndex ¶ added in v0.5.0
func (String) LookupByNode ¶ added in v0.5.0
func (String) LookupBySegment ¶ added in v0.5.0
func (String) LookupByString ¶ added in v0.5.0
func (String) MapIterator ¶
func (String) MapIterator() datamodel.MapIterator
type StringAssembler ¶
type StringAssembler struct {
TypeName string
}
StringAssembler has similar purpose as String, but for (you guessed it) the NodeAssembler interface rather than the Node interface.
func (StringAssembler) AssignBool ¶
func (x StringAssembler) AssignBool(bool) error
func (StringAssembler) AssignBytes ¶
func (x StringAssembler) AssignBytes([]byte) error
func (StringAssembler) AssignFloat ¶
func (x StringAssembler) AssignFloat(float64) error
func (StringAssembler) AssignInt ¶
func (x StringAssembler) AssignInt(int64) error
func (StringAssembler) AssignLink ¶
func (x StringAssembler) AssignLink(datamodel.Link) error
func (StringAssembler) AssignNull ¶
func (x StringAssembler) AssignNull() error
func (StringAssembler) BeginList ¶
func (x StringAssembler) BeginList(sizeHint int64) (datamodel.ListAssembler, error)
func (StringAssembler) BeginMap ¶
func (x StringAssembler) BeginMap(sizeHint int64) (datamodel.MapAssembler, error)