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 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]) Register ¶
func (voc *Vocabulary[V]) Register(name string, it V)
Click to show internal directories.
Click to hide internal directories.