basicnode

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: MIT Imports: 3 Imported by: 172

Documentation

Index

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

func NewBool

func NewBool(value bool) ipld.Node

func NewBytes

func NewBytes(value []byte) ipld.Node

func NewFloat

func NewFloat(value float64) ipld.Node

func NewInt

func NewInt(value int) ipld.Node
func NewLink(value ipld.Link) ipld.Node

func NewString

func NewString(value string) ipld.Node

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 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

Jump to

Keyboard shortcuts

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