When writing Go code, I often end up with lots of enums that I use to fork my logic in a switch statement. Take this enum: typeMyEnumintconst ( OneMyEnum = iotaTwoMyEnum = iotaThreeMyEnum = iotaFourMyEnum = iotaFiveMyEnum = iota) } I’ll then end up with a switch in a part of my code, like so switchmyEnum { caseOne: err:=DoSomeOtherStuff() iferr!=nil { returnerr } caseTwo: err:=DoSomeMagicalStuff() iferr!=nil { returnerr } caseThree: err:=DoSomeExoticStuff() iferr!=nil { returnerr } caseFour...