Int from string to go

What the function created to create an int value from a string

i := ???.????( "10" )
+5
source share
1 answer

Import the package strconv(src / pkg / strconv), then usestrconv.Atoi("10")

+7
source

All Articles