title: Cannot unmarshal object into Go value of type []uint8
body: <p>I am fairly new to Go. I have the following code:</p>
  
  <pre><code>package main
  
  import (
      "encoding/json"
      "fmt"
  )
  func main() {
  
      byt := []byte(`{"num":6.13,"strs":["a","b"]}`)
      dat := []byte(`{"num":7.13,"strs":["c","d"]}`)
      if err := json.Unmarshal(byt, &amp;dat); err != nil {
          panic(err)
      }
      fmt.Println(dat)
  
  }
  </code></pre>
  
  <p>Getting the error:</p>
  
  <blockquote>
    <p>cannot "unmarshal object into Go value of type []uint8".</p>
  </blockquote>
  
  <p>How can I fix this please?</p>