danhab99@programming.dev to Golang@programming.devEnglish · 1 year 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 · 1 year agomessage-square9fedilinkfile-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-squaredanhab99@programming.devOPlinkfedilinkarrow-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