package
module
Version:
v0.0.0-...-0cce6e3
Opens a new window with list of versions in this module.
Published: Sep 13, 2019
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 8
Opens a new window with list of known importers.
README
¶
injector
golang lightweight inject framework use tag and reflect
Documentation
¶
func Bind(val interface{}) error
Bind .
func Find(val interface{})
Find call global injector with Find function
Get call global injector with get function
func Register(key string, val interface{})
Register call global injector with register function
type Injector interface {
Register(name string, service interface{})
Get(name string, service interface{}) bool
Find(services interface{})
Bind(service interface{}) error
}
Injector injector engine
New create new injector context
Source Files
¶
Click to show internal directories.
Click to hide internal directories.