jweinst1
5/6/2016 - 7:17 AM

strtoint.go

package main

import(
	"fmt"
	"strconv"
)
//converts string to integer
func StrtoInt(input string) int {
	i, _ := strconv.Atoi(input)
	return i
}

func main() {
  fmt.Println(StrtoInt("3"));
}