danhab99@programming.dev to Golang@programming.devEnglish · 2 years agoI kinda wish there was a better way to do if err != nil in gogithub.comexternal-linkmessage-square9fedilinkarrow-up111arrow-down16file-text
arrow-up15arrow-down1external-linkI kinda wish there was a better way to do if err != nil in gogithub.comdanhab99@programming.dev to Golang@programming.devEnglish · 2 years agomessage-square9fedilinkfile-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-squaredanhab99@programming.devOPlinkfedilinkarrow-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