title: body.Read undefined (type *io.ReadCloser has no field or method Read)
body: <p>I can't seem to solve this weird error. Here's my code:</p>
  
  <pre><code>resp, err := http.Get("example.com/my/text/file.conf")
  ...
  err = parseEvent(eventchan, &amp;resp.Body)
  
  func parseEvent(eventchan chan Event, body *io.ReadCloser) error {
  raw := make([]byte, 1024*1024*32, 1024*1024*32)
  n, err := body.Read(raw)
  </code></pre>
  
  <p>And i get this strange error:</p>
  
  <blockquote>
    <p>./igen.go:91: body.Read undefined (type *io.ReadCloser has no field or method Read)</p>
  </blockquote>
  
  <p>Row 91 is the <code>n, err := body.Read(raw)</code> line above. </p>
  
  <p>What did I miss? Golang.org tells me ReadCloser implements Reader, which has the <code>Read(p []byte) (n int, err error)</code> method that I'm trying to call. </p>