title: Convert array of strings to field name
body: <p>Newbie question:
  I want to print various variables of a library (is that the correct name? <code>reflect.TypeOf(servers)</code> gives <code>[]lib.Server</code>)</p>
  
  <p>I want to do something like this, but this obviously does not work:</p>
  
  <pre><code>servers, err := GetClient().GetServers() //call to external API
  
  serverVariables := []string{}
  serverVariables = append(serverVariables, "Name")
  serverVariables = append(serverVariables, "IPAddress")
  
  for _, server := range servers {
     for _,element := range serverVariables {
       fmt.Println(server.element)
     }
  }
  </code></pre>
  
  <p>What I already can do is the following (but I want to do it using the above approach):</p>
  
  <pre><code>servers, err := GetClient().GetServers() //call to external API
  
  for _, server := range servers {
     fmt.Println(server.Name)
     fmt.Println(server.IPAddress)
  }
  </code></pre>
  
  <p>giving the following output:</p>
  
  <pre><code>ServerNameOne
  192.168.0.1
  ServerNameTwo
  192.168.0.2
  </code></pre>