Debian Codegraph @

docs/content/en/functions/math/MaxInt64.md

raw
1 ---
2 title: math.MaxInt64
3 description: Returns the maximum value for a signed 64-bit integer.
4 categories: []
5 keywords: []
6 params:
7 functions_and_methods:
8 aliases: []
9 returnType: int64
10 signatures: [math.MaxInt64]
11 ---
12
13 {{< new-in 0.147.3 />}}
14
15 ```go-html-template
16 {{ math.MaxInt64 }} → 9223372036854775807
17 ```
18
19 This function is helpful for simulating a loop that continues indefinitely until a break condition is met. For example:
20
21 ```go-html-template
22 {{ range math.MaxInt64 }}
23 {{ if eq . 42 }}
24 {{ break }}
25 {{ end }}
26 {{ end }}
27 ```