Golang溢出int64

Mad*_*Mad 7 biginteger go int64

我尝试使用此代码,但给了我一个错误:常量100000000000000000000000溢出int64

我该如何解决这个问题?

// Initialise big numbers with small numbers
count, one := big.NewInt(100000000000000000000000), big.NewInt(1)
Run Code Online (Sandbox Code Playgroud)

小智 7

例如:

count,one := new(big.Int), big.NewInt(1)
count.SetString("100000000000000000000000",10)
Run Code Online (Sandbox Code Playgroud)

链接:http: //play.golang.org/p/eEXooVOs9Z