pathfilter

package
v0.0.1-alpha Latest Latest
Warning

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

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

Documentation

Overview

Package pathfilter provides a trie-like structure that allows marking fields that are selected or contain children that are selected.

pathfilter is different than a trie because it does NOT have a terminal state.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	Excluded bool
	// contains filtered or unexported fields
}

func New

func New() *Instance

func (*Instance) Has

func (i *Instance) Has(key dotpath.Instance) (bool, *Instance)

func (*Instance) HasString

func (i *Instance) HasString(key string) (bool, *Instance)

func (*Instance) Put

func (i *Instance) Put(key dotpath.Instance)

func (*Instance) PutString

func (i *Instance) PutString(key string)

Jump to

Keyboard shortcuts

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