title: Golang decode array of strings
body: <p>I am trying to decode an array of strings in golang and cannot unmarshall this json in golang</p>
  
  <pre><code>"{\"keys\":[\"CovePDF:metadata:deadlineDate:asfsdbdjh\",\"CovePDF:metadata:endedOnDate:asfsdbdjh\",\"CovePDF:metadata:moderators:asfsdbdjh\",\"CovePDF:metadata:reviewers:asfsdbdjh\",\"CovePDF:metadata:title:asfsdbdjh\",\"CovePDF:metadata:initiator:asfsdbdjh\",\"CovePDF:metadata:startOnDate:asfsdbdjh\"]}"
  </code></pre>
  
  <p>my struct looks like this:</p>
  
  <pre><code>type Keys struct {
       keys []string `json:"keys"`
  }
  </code></pre>
  
  <p>and than trying to do</p>
  
  <pre><code>    keys := args[0] 
      ks := Keys{}
      err0 := json.Unmarshal([]byte(keys), &amp;ks)
  </code></pre>
  
  <p>I got an error in the logs of:</p>
  
  <blockquote>
    <p>error: unexpected end of JSON input
    error: Unmarshal unexpected end of JSON input
    error: unexpected end of JSON input</p>
  </blockquote>