Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Lookup ¶
func Lookup(k RegisterKey) interface{}
Lookup is to lookup your own previous registered value
func Register ¶
func Register(k RegisterKey, v interface{})
Register is used to register your own key and value
func RegisterEnv ¶
RegisterEnv is used to register env to this register hub
func RegisterShutdownCallback ¶
func RegisterShutdownCallback(callback func())
func ShutdownCallback ¶
func ShutdownCallback() []func()
Types ¶
type RegisterKey ¶
type RegisterKey string
RegisterKey is used to register custom value and retrieve back
Click to show internal directories.
Click to hide internal directories.