Documentation ¶
Overview ¶
Package registry provides a simple container for values in the application space. TODO: check if we should use sliceutil or maputil for exists or prefixed entries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnknownEntry = "registry: unknown registry name %#v, maybe you forgot to set it" ErrMandatoryArguments = errors.New("registry: one or more arguments have a zero-value") ErrAlreadyExists = "registry: %v is already registered" )
Error messages
Functions ¶
func Get ¶
Get returns the value by the registered name. If the registry name does not exist, an error will return.
func Prefix ¶
Prefix returns all entries as map which name start with the given prefix. If none was found, nil map will return.
Types ¶
Click to show internal directories.
Click to hide internal directories.