node

package
v0.0.0-...-098fa99 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2017 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package node implements data value intendent to be used in the trie package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {

	// Key of the node
	Key string

	// Value of the node
	Value interface{}

	// Parent leaf of the node
	Parent *Node

	// ImmediateParent might be a branch or a leaf
	ImmediateParent *Node

	// Children of the node
	Children []*Node

	// Keys of children
	Keys map[string]*Node

	// Leaf, is it?
	Leaf bool
}

Node stores essential node data

func New

func New(key string, value interface{}) *Node

New returns new Node (so we wouldn't have to define so many params)

Jump to

Keyboard shortcuts

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