Repository navigation
Use reflection to type check for slice types - #18
Merged
Merged
Conversation
Fixed the length() function to work with a slice of structs. The entire functions.go will need an audit to update the code to not assume slice of empty interface. Related: #15.
Merged
BrianBland
added a commit
to BrianBland/aws-sdk-go
that referenced
this pull request
Feb 2, 2016
Uses reflrection to type check for slices via jmespath/go-jmespath#18 Improves Godep vendoring via jmespath/go-jmespath#19 Signed-off-by: Brian Bland <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixed the length() function to work with a slice
of structs.
The entire functions.go will need an audit to update
the code to not assume slice of empty interface.
Related: #15.
Note: I'll use this PR as a working branch as I audit all the remaining functions, but I wanted to get the initial PR started. The remaining functions will likely go through a similar change.
I also want to see if there's a way I can auto gen compliance tests that use structs instead of empty interface so I can leverage the existing test code I have.
cc @jasdel