/atoi

Primary LanguageGo

ARGUMTOINTE

  • This is a basic atoi function that implements the strconv.Atoi() function.
  • The function takes an argument from the commandline and converts the argument to an integer.

Example

$ go run . 45
$ 45
$ go run . -23
$ -23
$ go run . +905
$ 905
$ go run . aBcd
$