math.MaxInt64
Returns the maximum value for a signed 64-bit integer.
Syntax
math.MaxInt64
Returns
int64
{{ math.MaxInt64 }} → 9223372036854775807This function is helpful for simulating a loop that continues indefinitely until a break condition is met. For example:
{{ range math.MaxInt64 }}
{{ if eq . 42 }}
{{ break }}
{{ end }}
{{ end }}Last updated:
July 7, 2025
:
Merge commit 'bb147f91ee9078e6a55e8c32ab4b2e5dbc5cee45' (079671b41)
Improve this page