Golang dynamic variable reference
<p>In Go, I would like to do something like this. I have a big object with many structs (using Google's <code>protobuf</code>). here is a contrived example:</p>

<pre><code>person.name = "testing"
person.address.street = "123 test st"
person.address.city = "tester"
person.address.zip = 90210
person.billing.address.same = true
</code></pre>

<p>I would like to be able to dynamically reference things. for example:</p>

<pre><code>key := "person.address.zip"
fmt.Println("the value of key: " + key) // would like to get 90210
key := "person.address.city"
fmt.Println("the value of key: " + key) // would like to get "tester"
</code></pre>

<p>Is this possible in Go? if so, how could I do that? essentially, I'm creating a report which only contains a subset of the object and I want to be able to create a mapping file where the user can map keys/values together and my program will output the value. I have this working in python, but wanted to try using Go :)</p>