title: Remove surrounding double or single quotes in Golang
body: <p>Shouldn't <code>strconv.Unquote</code> handle both single and double quotes?</p>
  
  <p>See also <a href="https://golang.org/src/strconv/quote.go" rel="nofollow noreferrer">https://golang.org/src/strconv/quote.go</a> - line 350</p>
  
  <p>However following code returns a <code>syntax error</code>:</p>
  
  <pre class="lang-golang prettyprint-override"><code>s, err := strconv.Unquote(`'test'`)
  if err != nil {
    fmt.Println(err)
  } else {
    fmt.Println(s)
  }
  </code></pre>
  
  <p><a href="https://play.golang.org/p/TnprqhNdwD1" rel="nofollow noreferrer">https://play.golang.org/p/TnprqhNdwD1</a></p>
  
  <p>But double quotes work as expected:
  </p>
  
  <pre><code>s, err := strconv.Unquote(`"test"`)
  if err != nil {
    fmt.Println(err)
  } else {
    fmt.Println(s)
  }
  </code></pre>
  
  <p>What am I missing?</p>