I am trying to use ** operator to calculate the 2 power 32. But I keep getting an error saying invalid indirect of 32 (type untyped number)
It is considering the second * to mean pointer to 32.
Isn’t 2**32 a valid expression?
I see that it is used in the comment of this documentation https://golang.org/pkg/math/
However I don’t see this being used elsewhere.
No, golang has no power operator by itself. The math package though provides a function for floats. For Integers you need to implement them on your own, but be aware of the fact that you’ll be out of bounds pretty quickly…