Using Iota in Golang - Declaring Incremental Constant Values with Iota
In this post, we will learn about the “iota” identifier in Go, how it’s used, and when not to use it. The “iota” identifier is used to represent integer based constants in Go, and is a convenient way to declare a sequence of constants, while keeping the code readable. If you just want to see the code, you can view it on Github or run it on the Go playground...