Documentation ¶
Index ¶
- Variables
- func NewBool(value bool) ipld.Node
- func NewBytes(value []byte) ipld.Node
- func NewFloat(value float64) ipld.Node
- func NewInt(value int) ipld.Node
- func NewLink(value ipld.Link) ipld.Node
- func NewString(value string) ipld.Node
- type Prototype__Any
- type Prototype__Bool
- type Prototype__Bytes
- type Prototype__Float
- type Prototype__Int
- type Prototype__Link
- type Prototype__List
- type Prototype__Map
- type Prototype__String
Constants ¶
This section is empty.
Variables ¶
View Source
var Prototype prototype
Prototype embeds a NodePrototype for every kind of Node implementation in this package. You can use it like this:
basicnode.Prototype.Map.NewBuilder().BeginMap() //...
and:
basicnode.Prototype.String.NewBuilder().AssignString("x") // ...
Most of the prototypes are for one particular Kind of node (e.g. string, int, etc); you can use the "Any" style if you want a builder that can accept any kind of data.
Functions ¶
Types ¶
type Prototype__Any ¶ added in v0.5.0
type Prototype__Any struct{}
func (Prototype__Any) NewBuilder ¶ added in v0.5.0
func (Prototype__Any) NewBuilder() ipld.NodeBuilder
type Prototype__Bool ¶ added in v0.5.0
type Prototype__Bool struct{}
func (Prototype__Bool) NewBuilder ¶ added in v0.5.0
func (Prototype__Bool) NewBuilder() ipld.NodeBuilder
type Prototype__Bytes ¶ added in v0.5.0
type Prototype__Bytes struct{}
func (Prototype__Bytes) NewBuilder ¶ added in v0.5.0
func (Prototype__Bytes) NewBuilder() ipld.NodeBuilder
type Prototype__Float ¶ added in v0.5.0
type Prototype__Float struct{}
func (Prototype__Float) NewBuilder ¶ added in v0.5.0
func (Prototype__Float) NewBuilder() ipld.NodeBuilder
type Prototype__Int ¶ added in v0.5.0
type Prototype__Int struct{}
func (Prototype__Int) NewBuilder ¶ added in v0.5.0
func (Prototype__Int) NewBuilder() ipld.NodeBuilder
type Prototype__Link ¶ added in v0.5.0
type Prototype__Link struct{}
func (Prototype__Link) NewBuilder ¶ added in v0.5.0
func (Prototype__Link) NewBuilder() ipld.NodeBuilder
type Prototype__List ¶ added in v0.5.0
type Prototype__List struct{}
func (Prototype__List) NewBuilder ¶ added in v0.5.0
func (Prototype__List) NewBuilder() ipld.NodeBuilder
type Prototype__Map ¶ added in v0.5.0
type Prototype__Map struct{}
func (Prototype__Map) NewBuilder ¶ added in v0.5.0
func (Prototype__Map) NewBuilder() ipld.NodeBuilder
type Prototype__String ¶ added in v0.5.0
type Prototype__String struct{}
func (Prototype__String) NewBuilder ¶ added in v0.5.0
func (Prototype__String) NewBuilder() ipld.NodeBuilder
Click to show internal directories.
Click to hide internal directories.