I\'m trying to convert a string returned from flag.Arg(n) to an int. What is the idiomatic way to do this in Go?
flag.Arg(n)
int
Try this
import ("strconv") value : = "123" number,err := strconv.ParseUint(value, 10, 32)