Documentation ¶
Overview ¶
Package register offers tools for creating and managing registers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Namespaced ¶
type Namespaced struct {
// contains filtered or unexported fields
}
Namespaced is a register able to keep track of elements stored under namespaces and keys
func (*Namespaced) AddNamespace ¶
func (n *Namespaced) AddNamespace(namespace string)
AddNamespace adds a new, empty Untyped register under the give namespace (if it did not exist)
func (*Namespaced) Get ¶
func (n *Namespaced) Get(namespace string) (*Untyped, bool)
Get returns the Untyped register stored under the namespace
func (*Namespaced) Register ¶
func (n *Namespaced) Register(namespace, name string, v interface{})
Register stores v at the key name of the Untyped register named namespace
Click to show internal directories.
Click to hide internal directories.