danhab99 to GolangEnglish · 2 years agoI kinda wish there was a better way to do if err != nil in gogithub.comexternal-linkmessage-square10linkfedilinkarrow-up111arrow-down16file-text
arrow-up15arrow-down1external-linkI kinda wish there was a better way to do if err != nil in gogithub.comdanhab99 to GolangEnglish · 2 years agomessage-square10linkfedilinkfile-text
minus-squarepodatuslinkfedilinkarrow-up3·2 years agoI would rename Check to Must which there is at least some precedent for.
minus-squaredanhab99OPlinkfedilinkarrow-up1·edit-22 years 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
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