Constants / iota / Essential Go

Run Settings
LanguageGo
Language Version
Run Command
package main import "fmt" func main() { type ByteSize int const ( _ = iota // ignore first value by assigning to blank identifier KB ByteSize = 1 << (10 * iota) MB GB TB PB ) fmt.Printf("KB: %d\n", KB) }
Editor Settings
Theme
Key bindings
Full width
Lines