@[email protected] to [email protected]English • 1 year agoI kinda wish there was a better way to do if err != nil in gogithub.comexternal-linkmessage-square9fedilinkarrow-up19arrow-down16file-text
arrow-up13arrow-down1external-linkI kinda wish there was a better way to do if err != nil in gogithub.com@[email protected] to [email protected]English • 1 year agomessage-square9fedilinkfile-text
minus-square@[email protected]OPlinkfedilink2•1 year ago As an aside, you probably don’t need a static union type for your min and max functions. I assume you could use comparable. comparible only allows ==
minus-square@[email protected]OPlinkfedilink1•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.
comparible
only allows==
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.