I was wondering how can I convert a uint64
to big.Int
in golang? the shortest way.
I have tried new(big.Int).SetInt64(int64(a uint64 number))
.
I don't like it cause it's long, too much nested conversions and I'd rather use a built-in function if it exists.