title: Golang type assertion for list of items
body: <p>Im calling a API and it returns a dictionary(map) with a list of items as values.</p>
  
  <p>For ex:-</p>
  
  <pre><code>result= {'outputs':[{'state':'md','country':'us'}, {'state':'ny','country':'ny'}]}
  </code></pre>
  
  <p>The above data is how the data represented in python.</p>
  
  <p>In Python, I directly use result['outputs'][0] to access the list of elements in the list.</p>
  
  <p>In Golang, the same API returns the data but when I try to access the data as result['outputs'][0]</p>
  
  <p>Get this error:-</p>
  
  <pre><code>invalid operation: result["outputs"][0] (type interface {} does not support indexing)
  </code></pre>
  
  <p>Looks like I need to do a type conversion, what should I use to type convert, 
  I tried this </p>
  
  <pre><code>result["outputs"][0].(List)
  result["outputs"][0].([])
  </code></pre>
  
  <p>but both throws me an error.</p>
  
  <p>I checked the type of the returned item and this is it  - []interface {}</p>
  
  <p>What should be my type conversion?</p>