Documentation ¶
Overview ¶
Package goioc provides a basic type registry for Go.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Implements ¶
func Implements(ifaceObj interface{}) chan interface{}
Implements returns a channel that receives instantiated instances of all the registered types that implement the provided interface.
For example, imagine all objects that implement the io.Reader interface should be returned:
Implements((*io.Reader)(nil))
The above call will return instantiated objects for all registered types that implement the io.Reader interface.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.