title: strconv.Atoi() throwing error when given a string
body: <p>When trying to use strconv on a variable passed via URL(GET variable named times), GoLang fails on compilation stating the following:</p>
  
  <blockquote>
    <p>multiple-value strconv.Atoi() in a single-value context</p>
  </blockquote>
  
  <p><strong>However, when I do reflect.TypeOf I get string as the type, which to my understanding is the correct type of argument.</strong></p>
  
  <p>I have been trying to fix this issue for several hours. I'm new to go and have become pretty frustrated with this problem. I finally decided to ask for help. Any feedback would be appreciated.</p>
  
  <pre><code>func numbers(w http.ResponseWriter, req *http.Request) {
    fmt.Println("GET params were:", req.URL.Query()); 
    times := req.URL.Query()["times"][0]
    time := strconv.Atoi(times)
  
    reflect.TypeOf(req.URL.Query()["times"][0]) // returns string
  }
  </code></pre>