science

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListAssembler added in v0.0.3

type ListAssembler interface {
	AssembleValue() NodeAssembler

	Append(Node)

	Done()
}

type MapAssembler added in v0.0.3

type MapAssembler interface {
	AssembleKey() MapKeyAssembler

	Insert(string, Node)
	Insert2(Node, Node)

	Done()
}

type MapKeyAssembler

type MapKeyAssembler interface {
	NodeAssembler
	AssembleValue() MapValueAssembler
}

type MapValueAssembler

type MapValueAssembler interface {
	NodeAssembler
}

type Node

type Node interface {
}

type NodeAssembler

type NodeAssembler interface {
	BeginMap() MapAssembler
	BeginList() ListAssembler
	AssignNull()
	AssignBool(bool)
	AssignInt(int)
	AssignFloat(float64)
	AssignString(string)
	AssignBytes([]byte)

	Assign(Node)
	CheckError() error // where are these stored?  when each child is done, could check this.  and have it stored in each child.  means each allocs (nonzero struct)... but isn't that true anyway?  yeah.  well, except now you're apparently getting that for scalars, which is bad.
}

type NodeBuilder

type NodeBuilder interface {
	NodeAssembler
	Build() (Node, error)
}

Jump to

Keyboard shortcuts

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