Documentation ¶
Overview ¶
Package inject is the improved version of https://github.com/facebookgo/inject.
Improvements are listed as below:
- More intuitive declaration about dependency relations.
- Support constructor.
- Return the initialized dependency graph (retrieve object outside self scope).
The usage example is in the `inject_test.go`, run `go test` and the output should be like as below
[:~ … /inject] $ go test 2017/07/31 22:36:21 Tillage 3 hours 2017/07/31 22:36:21 Got rice 2017/07/31 22:36:21 Boeing787 Fly from C++ to Go 2017/07/31 22:36:21 Tillage 5 hours PASS ok github.com/browny/inject 0.018s
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.