trog

package
v0.0.0-...-eb6d389 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2016 License: MIT, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlagMap

type FlagMap map[string]struct{}

func (FlagMap) Del

func (fm FlagMap) Del(flag string)

func (FlagMap) Has

func (fm FlagMap) Has(flag string) bool

func (FlagMap) List

func (fm FlagMap) List() []string

func (FlagMap) Set

func (fm FlagMap) Set(flag string)

type Node

type Node struct {
	Pairs    PairMap // Key/value pairs
	Flags    FlagMap // Value-only flags
	Parent   *Node   // Direct ancestor of this node
	Children []*Node // Direct children of this node
	Parents  []*Node // Every ancestor, all the way up to the root
}

func NewNode

func NewNode() *Node

Create a new, empty, node.

func (*Node) AddChild

func (node *Node) AddChild() *Node

Add a new child to the given node.

func (*Node) Split

func (node *Node) Split() *Node

Add a new node between the given node and its parent.

type NodeId

type NodeId string

type Pair

type Pair struct {
	Key string
	Val string
}

type PairMap

type PairMap map[string]string

func (PairMap) Del

func (pm PairMap) Del(key string)

func (PairMap) Get

func (pm PairMap) Get(key string) string

func (PairMap) Has

func (pm PairMap) Has(key string) bool

func (PairMap) List

func (pm PairMap) List() []Pair

func (PairMap) Set

func (pm PairMap) Set(key, val string)

Jump to

Keyboard shortcuts

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