path

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseSchema

func ParseSchema(schema *ytypes.Schema, root string) (map[string]*Element, error)

ParseSchema takes a YANG schema and parses it into paths

func Strings

func Strings(paths map[string]*Element) []string

Strings constructs a slice containg all possible root to leaf paths. Calls stringBuilder internally

Types

type Element

type Element struct {
	Children []*Element
	Name     string
}

Element represents a node in a path containing its name and possible child nodes

func (*Element) Print

func (p *Element) Print()

Print prints the path element to stdout. It calls printElement recursively

Jump to

Keyboard shortcuts

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