tags:

views:

96

answers:

1

What's the function to create a int value from string

i := ???.????( "10" )
+7  A: 

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

Kyle Rozendo