title: is there a way to create an instance of a struct from a string?
body: <p>Given a struct:</p>
  
  <pre><code>type MyStruct struct {
      A int
      B int
  }
  </code></pre>
  
  <p>and a string with the struct's name</p>
  
  <pre><code>a := "MyStruct"
  </code></pre>
  
  <p>or</p>
  
  <pre><code>a := "mypkg.MyStruct"
  </code></pre>
  
  <p>How do I create an instance of my struct from the string name rather than the struct? The idea is that I would create an application with all of the structures linked into the binary but create the runtime instances from the strings. (sort of a meta-meta)</p>