title: Go : How to reference a field in an inherited struct
body: <p>I have 2 structs whereby one inherits values that are common amongst all stucts denoted by <code>type Common struct {...}</code></p>
  
  <pre><code>type Common struct{
      Id int
      CreatedAt time.Time
      UpdatedAt time.Time
      CreatorId int
  }
  
  type Post struct{
    type Post struct{
    Common
    Status
    Title string
    ShortDescription string
    Content string
    CategoryIds []int
    TagIds []int
    Url string
    MainImageId int
    Keywords []string
  }
  </code></pre>
  
  <p>However when I try to create a new instance of the Post struct as in the following.  </p>
  
  <pre><code>post1 := &amp;Post{
      CreatorId:   1,
      Status: 1,
      Title: "this is the title of the first post",
      ShortDescription: "this is the short description of this post",
      Content: "",
      Url: "first-post",
      MainImageId: 1,
  }
  </code></pre>
  
  <p>It does not recognise the <code>CreatorId</code> field.
  How would I reference this field in the new instance or modify the struct so that it registers <code>CreatorID</code> as part of the <code>Post</code> struct?
  Thanks</p>