Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateObject ¶
CreateObject creates an object by its config. The config type must be registered through RegisterConfig().
func RegisterConfig ¶
func RegisterConfig(config interface{}, configCreator ConfigCreator) error
RegisterConfig registers a global config creator. The config can be nil but must have a type.
Types ¶
type ConfigCreator ¶
ConfigCreator is a function to create an object by a config.
Click to show internal directories.
Click to hide internal directories.