Constants cannot be changed



examples/const-protection/const_protection.go
package main

import (
    "fmt"
)

const pi float32 = 3.14

func main() {
    fmt.Println(pi)
    pi = 23.14
}

# command-line-arguments
./const_protection.go:11:5: cannot assign to pi