我尝试使用此代码,但出现错误:常量 100000000000000000000000 溢出 int64
我该如何解决?
// Initialise big numbers with small numbers
count, one := big.NewInt(100000000000000000000000), big.NewInt(1)
最佳答案
例如:
count,one := new(big.Int), big.NewInt(1)
count.SetString("100000000000000000000000",10)
关于Golang 溢出 int64,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30833314/