title: Thrift file how to define a list of object id
body: <p>I am using thrift + Go, and my thrift file looks like this:</p>
  <pre><code>namespace go user
  
  struct Role {
      1: string id;
      2: string roleName;
  }
  
  struct User {
      1: required string id;
      2: required string email;
      3: required string password;
      4: required string name;
      5: optional list&lt;Role.id&gt; roles;
  }
  </code></pre>
  <p>when I run : <code>thrift -r --gen go user.thrift</code></p>
  <p>I got:
  <code>Type &quot;Role.id&quot; not defined</code></p>
  <p>Any ideas on how I should achieve this?</p>