Standard library / math/big
big.Int
Arbitrary-precision signed integer; zero value is zero. Use Set for independent copies rather than shallow struct assignment. Expected stdout: '42\n'.
Formal Syntax & Structure
go syntaxgo
type Int struct { /* unexported fields */ }Working Example
Example Snippetgo
package main
import ( "fmt" "math/big")
func main() { var v big.Int v.SetInt64(42) fmt.Println(&v)}