string to big Int in Go?
问题 Is there a way to convert a string (which is essentially a huge number) from string to Big int in Go? I tried to first convert it into bytes array array := []byte(string) Then converting the array into BigInt. I thought that worked, however, the output was different than the original input. So I'm guessing the conversion didn't do the right thing for some reason. The numbers I'm dealing with are more than 300 digits long, so I don't think I can use regular int. Any suggestions of what is the