danhab99 to GolangEnglish · 2 years agoI kinda wish there was a better way to do if err != nil in gogithub.comexternal-linkmessage-square10linkfedilinkarrow-up111arrow-down16file-text
arrow-up15arrow-down1external-linkI kinda wish there was a better way to do if err != nil in gogithub.comdanhab99 to GolangEnglish · 2 years agomessage-square10linkfedilinkfile-text
minus-squareOliver Lowe@lemmy.sdf.orglinkfedilinkarrow-up3·2 years agoThere is! See “Errors are values” from the Go blog: https://go.dev/blog/errors-are-values
minus-squaredanhab99OPlinkfedilinkarrow-up1arrow-down1·2 years agoYeah I know about that article… Then again… I’m lazy
There is! See “Errors are values” from the Go blog: https://go.dev/blog/errors-are-values
Yeah I know about that article… Then again… I’m lazy