Skip to content

Use reflection to type check for slice types - #18

Merged
jamesls merged 1 commit into
masterfrom
functions-scalar
Feb 2, 2016
Merged

jamesls merged 1 commit into
masterfrom
functions-scalar

Conversation

@jamesls

@jamesls jamesls commented Feb 1, 2016

Copy link
Copy Markdown
Member

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

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.
@jamesls jamesls mentioned this pull request Feb 2, 2016
@jamesls
jamesls merged commit b120806 into master Feb 2, 2016
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]>
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.

1 participant