Standard library / math
math.MaxInt64
Maximum representable int64 value; useful for bounds checks. Expected stdout: '9223372036854775807\n'.
Formal Syntax & Structure
go syntaxgo
const MaxInt64 = 1<<63 - 1Working Example
Example Snippetgo
package main
import ( "fmt" "math")
func main() { fmt.Println(int64(math.MaxInt64))}