Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlwaysReturn ¶ added in v0.2.0
AlwaysReturn the given value, it's an implementation of unregisterReturn
Types ¶
type Registry ¶
type Registry[T any] struct { // contains filtered or unexported fields }
Registry provider Register and Get zero value is not ready for use, New it
this is a map, but - can't Register a name twice, panic if it happens - can get a hook on Get an unregistered name
after go support generics type, it seems not need to use this package.
Click to show internal directories.
Click to hide internal directories.