-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could anybody explain how to use this package? #26
Comments
@kalopsia maybe you can take a look at the test_inject.go, or read martini's code. |
@pengfei-xue I've already read martini's code, but it is the reason why I'm asking for here. I don't understand why it used for and why there is the need for yet another package make a "magic". |
there is no magics here , the code is straight forward if you read the article on golang's blog about go reflection. There is no magic in go. Json and Xml and most database packages make use of the same injection schemes. So let's not say there is magic anywhere because there is none. This package is used in the Martini framework. |
Yea I know that it's used in Martini - so I'm asking. Anyway thank you for explanation!) I close it) |
Hello, I've read readme, but still I can't figure out how to use it and where it can be applied. Could anybody give some sort of "helloworld" example?)
The text was updated successfully, but these errors were encountered: