math.MaxInt64
Returns the maximum value for a signed 64-bit integer.
- Syntax
- math.MaxInt64
- Returns
- int64
Usage
The math.MaxInt64 function returns the maximum value for a signed 64-bit integer. Use this function with the range statement to create a loop that continues until a break condition is met.
Examples
{{ math.MaxInt64 }} → 9223372036854775807Looping until a break condition is met:
{{ range math.MaxInt64 }}
{{ if eq . 42 }}
{{ break }}
{{ end }}
{{ end }}Last updated:
October 21, 2026
:
content: Apply style guide to math functions (658ef2b60)
Improve this page