Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for custom slice types or aliases #2

Closed
JelteF opened this issue Nov 10, 2017 · 2 comments
Closed

Support for custom slice types or aliases #2

JelteF opened this issue Nov 10, 2017 · 2 comments

Comments

@JelteF
Copy link

JelteF commented Nov 10, 2017

This is not detected at the moment:

type MySlice []string

var missing MySlice
for feature := range optionalSet {
	missing = append(missing, feature)
}

And this as well:

type MySlice = []string

var missing MySlice
for feature := range optionalSet {
	missing = append(missing, feature)
}
@alexkohler
Copy link
Owner

Good catch! That shouldn't be too hard to add.

@dreamer-nitj
Copy link
Contributor

@alexkohler i have created a PR for this at. please have a look.

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

No branches or pull requests

3 participants