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-square10fedilinkarrow-up111arrow-down15file-text
arrow-up16arrow-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-square10fedilinkfile-text
minus-squaretheherk@lemmy.worldlinkfedilinkarrow-up2·1 year agoOh right! What am I saying? contraints.Ordered maybe.
minus-squaredanhab99@programming.devOPlinkfedilinkarrow-up1·1 year agoI just looked at the standard docs and I didn’t realize there was a built-in min and max function. Y’all should really read the standard lib docs… it’s fascinating in there.
Oh right! What am I saying?
contraints.Ordered
maybe.I just looked at the standard docs and I didn’t realize there was a built-in min and max function. Y’all should really read the standard lib docs… it’s fascinating in there.