Help us shape the future of Go! Take the 2026 Go Developer Survey

pattern

package
v1.20.2 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Flatten

func Flatten(ns []Node, result []string) []string

Types

type Node

type Node struct {
	// contains filtered or unexported fields
}

func Merge

func Merge(src, dest []Node) (*Node, bool)

func NewLeaf

func NewLeaf(value string) *Node

func NewNode

func NewNode(children []Node) *Node

func NewRoot

func NewRoot() Node

func (*Node) Append

func (n *Node) Append(value string)

func (*Node) Child

func (n *Node) Child(i int) *Node

func (*Node) Children

func (n *Node) Children() []Node

func (*Node) Degree

func (n *Node) Degree() int

func (*Node) First

func (n *Node) First() *Node

func (*Node) IsLeaf

func (n *Node) IsLeaf() bool

func (*Node) Last

func (n *Node) Last() *Node

func (*Node) Leaves

func (n *Node) Leaves() int

func (*Node) String

func (n *Node) String(root bool) string

func (*Node) Value

func (n *Node) Value() string

Jump to

Keyboard shortcuts

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