voc

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package voc implements a generic vocabulary. Vocabularies may be nested and are searched upwards using the parent vocabulary until this is nil. Individual entries contain slices of values; the last item in a slice is the current value.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VocData

type VocData[V any] map[string][]V

type Vocabulary

type Vocabulary[V any] struct {
	// contains filtered or unexported fields
}

func NewVoc

func NewVoc[V any](parent *Vocabulary[V]) *Vocabulary[V]

func (*Vocabulary[V]) Lookup

func (voc *Vocabulary[V]) Lookup(name string) f.Maybe[V]

func (*Vocabulary[V]) Register

func (voc *Vocabulary[V]) Register(name string, it V)

Jump to

Keyboard shortcuts

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