danhab99@programming.dev to Golang@programming.dev • 1 year agoI kinda wish there was a better way to do if err != nil in goexternal-linkmessage-square6 fedilinkarrow-up15file-text
arrow-up15external-linkI kinda wish there was a better way to do if err != nil in godanhab99@programming.dev to Golang@programming.dev • 1 year agomessage-square6 Commentsfedilinkfile-text
minus-squareOliver Lowe@lemmy.sdf.orghexbear3·1 year agoThere is! See “Errors are values” from the Go blog: https://go.dev/blog/errors-are-values linkfedilink
minus-squaredanhab99@programming.devhexagonhexbear1·1 year agoYeah I know about that article.... Then again... I'm lazy linkfedilink
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