Constant blocks
package main
import (
"fmt"
)
const (
a = 1
b = 3
c = 5
)
func main() {
fmt.Println(a)
fmt.Println(b)
fmt.Println(c)
}
1
3
5
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
package main
import (
"fmt"
)
const (
a = 1
b = 3
c = 5
)
func main() {
fmt.Println(a)
fmt.Println(b)
fmt.Println(c)
}
1
3
5