Skip to content
This repository has been archived by the owner on Mar 22, 2019. It is now read-only.

don't panic when injecting nil #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gabrielf
Copy link

@gabrielf gabrielf commented Jun 1, 2017

I think the error message: "expected unnamed object value to be a pointer to a struct but got type %!s() with value " is slightly better than the current behavior which is to panic when injecting nil.

@gabrielf
Copy link
Author

gabrielf commented Jun 1, 2017

Injecting nil as a named object gives no error so to be honest I don't know the expected behavior in these cases...

@shanshui29
Copy link

I have reviewed the code. That's Ok.

@emanuel-v-r
Copy link

emanuel-v-r commented Jul 9, 2018

Created this repo https://github.com/imaramos/goject with the purpose of extend this libary due to the lack of maintainance.
The only feature added was the described in this pull request #21.
The rest is only renaming.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants