danhab99 to GolangEnglish · 1 year agoI kinda wish there was a better way to do if err != nil in gogithub.comexternal-linkmessage-square10fedilinkarrow-up111arrow-down16file-text
arrow-up15arrow-down1external-linkI kinda wish there was a better way to do if err != nil in gogithub.comdanhab99 to GolangEnglish · 1 year agomessage-square10fedilinkfile-text
minus-squareOliver Lowe@lemmy.sdf.orglinkfedilinkarrow-up3·1 year agoThere is! See “Errors are values” from the Go blog: https://go.dev/blog/errors-are-values
minus-squaredanhab99OPlinkfedilinkarrow-up1arrow-down1·1 year 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