bugsmithA to Golang · 1 year agoGo Enums Still Suckwww.zarl.devexternal-linkmessage-square13fedilinkarrow-up123arrow-down13
arrow-up120arrow-down1external-linkGo Enums Still Suckwww.zarl.devbugsmithA to Golang · 1 year agomessage-square13fedilink
minus-squareEthanlinkfedilinkEnglisharrow-up4·1 year agoYou are correct, Go doesn’t have enums. The const thing is a widely accepted pattern for approximating enums.
You are correct, Go doesn’t have enums. The const thing is a widely accepted pattern for approximating enums.