In my use case, I would like to know how the following Java code would be implemented in Go
BigInteger base = new BigInteger("16");
int exponent = 1;
BigInteger a = base.pow(exponent); //16^1 = 16
I am able to import the math/big
package and create big integers, but not able to do Pow()
function in Go. Also I don't find the function in the Go doc.
Do I have to implement my own version of Pow()
for bigint? Could anyone help me on this?