-
Notifications
You must be signed in to change notification settings - Fork 270
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
Get: Should return typed nil when out is nil/empty slice #106
Closed
mattayes opened this issue
Dec 17, 2020
· 1 comment
· Fixed by #115, evryfs/github-actions-runner-operator#213, dictyBase/modware-annotation#114, openshift/assisted-installer#234 or FairwindsOps/insights-cli#17
Closed
Get: Should return typed nil when out is nil/empty slice #106
mattayes opened this issue
Dec 17, 2020
· 1 comment
· Fixed by #115, evryfs/github-actions-runner-operator#213, dictyBase/modware-annotation#114, openshift/assisted-installer#234 or FairwindsOps/insights-cli#17
Comments
vellotis
added a commit
to vellotis/go-funk
that referenced
this issue
Mar 10, 2021
Merged
thoas
added a commit
that referenced
this issue
Mar 11, 2021
This was referenced Mar 12, 2021
Merged
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm running into an issue when using
Get()
with a zero-value or empty slice of structs.Here's an example:
I expected all three cases to return a zero-value
[]string
(i.e., a typednil
), however the first two return an untypednil
, which causes these type conversions to fail.The text was updated successfully, but these errors were encountered: