title: Cannot assign []byte to z (type string) in multiple assignment
body: <p>I'm trying to find the contents of files within a folder, so I'm listing what's in the folder then while looping through it I'm trying to read the files.</p>
  <pre><code>files, _ := ioutil.ReadDir(&quot;documents/&quot;)
  for _, f := range files {
          //fmt.Println(f.Name())
  
      z := &quot;documents/&quot; + f.Name()
      fmt.Println(z) // prints out 'documents/*doc name*' recursively
      z, err := ioutil.ReadFile(z) // This line throws up the error
  </code></pre>
  <p>The error I get is: test.go:85: cannot assign []byte to z (type string) in multiple assignment.</p>