trie

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package trie contains a trie implementation for selectors and dotted paths.

WARNING: this package is primarily intended for internal use by the generated gateway code. In order to improve efficiency of the utilities in this package, unsafe approaches such as taking a string pointer, is used which can lead to panics if not used in a specific way.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

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

func New

func New(items ...string) *Node

func (*Node) Add

func (n *Node) Add(key dotpath.Instance)

func (*Node) AddString

func (n *Node) AddString(key string)

func (*Node) HasCommonPrefix

func (n *Node) HasCommonPrefix(key dotpath.Instance) bool

func (*Node) HasCommonPrefixString

func (n *Node) HasCommonPrefixString(key string) bool

func (*Node) Iterate

func (n *Node) Iterate(cb func(string))

Jump to

Keyboard shortcuts

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