title: Convert interface{} into []string in Golang
body: <p>I am new to GO language and I am trying to get a value from a function which returns two strings, that is <code>[str1, str2]</code></p>
  
  <pre><code> ret, err := fun1(....)
  </code></pre>
  
  <p>And function's prototype is </p>
  
  <pre><code>func fun1(...) (interface{}, error)
  </code></pre>
  
  <p>I print <code>ret</code>, it is</p>
  
  <pre><code>[[57 57 56 56] [97 100 98 49 57 55 102 98 49 101 57 48 52 98 102 56 55 102 52 56 57 57 55 54 49 55 101 57 49 100 98 49]]
  </code></pre>
  
  <p>which looks like the type <code>[][]uint8</code>, so, I tried this way</p>
  
  <pre><code>    v, _ := ret.([][]uint8)
      str1, _ := strconv.Atoi(string(v[0]))
      str2, _ := strconv.Atoi(string(v[1]))
  </code></pre>
  
  <p>it failed, v is <code>[]</code></p>
  
  <p>And I also tried:</p>
  
  <pre><code>   v, _ := ret.([]string)
  </code></pre>
  
  <p>nothing changed</p>
  
  <p>How to solve this?
  Any help will be appreciated :)</p>
  
  <p>PS: I debug and find the first string is <code>"9988"</code></p>