Skip to content

Conversation

@CountFenring
Copy link
Owner

Chris Broglie and others added 2 commits March 16, 2015 01:29
This is useful if you have a generic method which is trying to decode
a slice of structs individually. Since you can't pass an object of type
[]myStruct to a method expecting []interface{}, the only way to handle
it is to have the method signature accept just interface{}, and use
reflect to access the individual elements.
@CountFenring CountFenring merged commit 6926c93 into CountFenring:master Nov 17, 2016
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

Successfully merging this pull request may close these issues.

2 participants