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-squarepodatus@programming.devhexbear3·1 year agoI would rename Check to Must which there is at least some precedent for. linkfedilink
minus-squaredanhab99@programming.devhexagonhexbear1·edit-21 year agoOh yeah and it's also less to type. Good idea! Edit: here's the change https://github.com/danhab99/idk/blob/main/idk.go#L13 linkfedilink
I would rename Check to Must which there is at least some precedent for.
Oh yeah and it's also less to type. Good idea!
Edit: here's the change https://github.com/danhab99/idk/blob/main/idk.go#L13