Yst*_*ter 10 string int go bigint
如何在Golang中将big int转换为字符串(或整数)?
bigint := big.NewInt(123) //This is what I have
bigstr = "123" //This is what I want
Run Code Online (Sandbox Code Playgroud)
cyb*_*lia 24
只需使用以下String方法:http://golang.org/pkg/math/big/#Int.String
bigint := big.NewInt(123)
bigstr := bigint.String()
Run Code Online (Sandbox Code Playgroud)