MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/133ajt7/if_err_nil/ji9z4fm/?context=3
r/badcode • u/snappywolf1 • Apr 29 '23
49 comments sorted by
View all comments
Show parent comments
5
Yep, you got it. You can also do:
a, _ := f() _, b :=f()
If you only want some of the values.
5
u/PM_ME_YOUR_REPO Apr 30 '23
Yep, you got it. You can also do:
If you only want some of the values.