Comment Comment by coverup FWIW, there's a slightly more concise way of expressing this in Go: type state int const ( on state = iota off ) parent coverup 6 years ago