Go iota

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

External

Internal

Overview

iota is referred to as an enumerator.

Go Enumerations


How Does the Compiler Assign Values to iota

The compiler parses const() sequence, and each time it encounters a iota constant, it assigns it the zero-based index of the constant, as it appears in the const() sequence.