Skip to content
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

Closed
timfayz opened this issue Feb 13, 2015 · 4 comments
Closed

Could anybody explain how to use this package? #26

timfayz opened this issue Feb 13, 2015 · 4 comments

Comments

@timfayz
Copy link

timfayz commented Feb 13, 2015

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?)

@coldfire-x
Copy link

@kalopsia maybe you can take a look at the test_inject.go, or read martini's code.

@timfayz
Copy link
Author

timfayz commented Feb 15, 2015

@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".

@Mparaiso
Copy link

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.

@timfayz
Copy link
Author

timfayz commented Apr 22, 2015

Yea I know that it's used in Martini - so I'm asking. Anyway thank you for explanation!) I close it)

@timfayz timfayz closed this as completed Apr 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants