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

don't panic when injecting nil#12

Open
gabrielf wants to merge 1 commit into
facebookarchive:masterfrom
gabrielf:inject-nil-shouldnt-panic
Open

don't panic when injecting nil#12
gabrielf wants to merge 1 commit into
facebookarchive:masterfrom
gabrielf:inject-nil-shouldnt-panic

Conversation

@gabrielf

@gabrielf gabrielf commented Jun 1, 2017

Copy link
Copy Markdown

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

gabrielf commented Jun 1, 2017

Copy link
Copy Markdown
Author

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
Copy Markdown

I have reviewed the code. That's Ok.

@emanuel-v-r

emanuel-v-r commented Jul 9, 2018

Copy link
Copy Markdown

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