Convert String to Int, Int64, Uint64
This is one of those posts that won’t need a huge introduction. We want to convert a string into an integer. We’ll look at the different ways to do this (based on which sort of int you want). We’ll convert to
uint64 (though a int64 will be easy enough work out).
All examples we cover will be part of the
strconv package - see docs.