store

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Identifiers

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

Identifiers stores identifiers.

func New

func New() *Identifiers

New returns a new identifier store.

func (*Identifiers) Generate

func (s *Identifiers) Generate(name ...string) string

Generage generates and registeres a unique name with the store. If the base name is already registered, a unique suffix is appended to the name.

func (*Identifiers) Register

func (s *Identifiers) Register(name string) bool

Register registers a name with the store.

Jump to

Keyboard shortcuts

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