title: How to set array value to a field in golang using reflect?
body: <p>I have a Struct with following fields </p>
  
  <pre><code>type Config struct {
          Address[]string
          Name string
  }
  </code></pre>
  
  <p>I am reading the values for this Config from a file in JSON format </p>
  
  <pre><code>{
     "Address": ["xx.xx.xx.xx","xx.xx.xx.xx"],
     "Name":"Name"
  }
  </code></pre>
  
  <p>I have used Reflect to identify the type and set its value to Config.I am able to set the value of Name field using 
  <strong>func (v Value) SetString(x string)</strong> which is an inbuilt method in reflect. Is there a way to set []string values directly to a field? Please help.</p>