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 Style__Any
- type Style__Bool
- type Style__Bytes
- type Style__Float
- type Style__Int
- type Style__Link
- type Style__List
- type Style__Map
- type Style__String
Constants ¶
This section is empty.
Variables ¶
View Source
var Style style
Style embeds a NodeStyle for every kind of Node implementation in this package. You can use it like this:
basicnode.Style.Map.NewBuilder().BeginMap() //...
and:
basicnode.Style.String.NewBuilder().AssignString("x") // ...
Most of the styles here 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 Style__Any ¶
type Style__Any struct{}
func (Style__Any) NewBuilder ¶
func (Style__Any) NewBuilder() ipld.NodeBuilder
type Style__Bool ¶
type Style__Bool struct{}
func (Style__Bool) NewBuilder ¶
func (Style__Bool) NewBuilder() ipld.NodeBuilder
type Style__Bytes ¶
type Style__Bytes struct{}
func (Style__Bytes) NewBuilder ¶
func (Style__Bytes) NewBuilder() ipld.NodeBuilder
type Style__Float ¶
type Style__Float struct{}
func (Style__Float) NewBuilder ¶
func (Style__Float) NewBuilder() ipld.NodeBuilder
type Style__Int ¶
type Style__Int struct{}
func (Style__Int) NewBuilder ¶
func (Style__Int) NewBuilder() ipld.NodeBuilder
type Style__Link ¶
type Style__Link struct{}
func (Style__Link) NewBuilder ¶
func (Style__Link) NewBuilder() ipld.NodeBuilder
type Style__List ¶
type Style__List struct{}
func (Style__List) NewBuilder ¶
func (Style__List) NewBuilder() ipld.NodeBuilder
type Style__Map ¶
type Style__Map struct{}
func (Style__Map) NewBuilder ¶
func (Style__Map) NewBuilder() ipld.NodeBuilder
type Style__String ¶
type Style__String struct{}
func (Style__String) NewBuilder ¶
func (Style__String) NewBuilder() ipld.NodeBuilder
Click to show internal directories.
Click to hide internal directories.