Constants
-
const
-
const - constants
package main
import (
"fmt"
)
const pi float32 = 3.14
func main() {
fmt.Println(pi)
}
3.14
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
const
const - constants
package main
import (
"fmt"
)
const pi float32 = 3.14
func main() {
fmt.Println(pi)
}
3.14