title: Initialize multiple values in a struct using one function
body: <p>I would like to initialize multiple variables in a struct using the same function like so:</p>
  
  <pre><code>type temp struct {
      i int
      k int
  }
  
  func newtemp(age int) *temp{
      return &amp;temp{
          i, k := initializer(age)
      }
  }
  func initializer(age int)(int, int){
      return age * 2, age * 3   
  }
  </code></pre>
  
  <p>however, I can not due to having to use <code>:</code> to initialize variables when creating a struct, is there any way I can do something that is valid yet like the code above?</p>