...

/

Puzzle 25 Explanation: Go iota

Puzzle 25 Explanation: Go iota

Understand how iota works in Go.

We'll cover the following...

Try it yourself

Try executing the code below to see the result.

Press + to interact
package main
import (
"fmt"
)
const (
Read = 1 << iota
Write
Execute
)
func main() {
fmt.Println(Execute)
}

Explanation

In Go, iota is an ...

Access this course and 1400+ top-rated courses and projects.