@danhab99 to GolangEnglish • 9 months agoI kinda wish there was a better way to do if err != nil in gogithub.comexternal-linkmessage-square10arrow-up111arrow-down16file-text
arrow-up15arrow-down1external-linkI kinda wish there was a better way to do if err != nil in gogithub.com@danhab99 to GolangEnglish • 9 months agomessage-square10file-text
minus-squareOliver Lowelinkfedilink3•9 months agoThere is! See “Errors are values” from the Go blog: https://go.dev/blog/errors-are-values
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