title: How to get a new variable of the same type of another variable with Golang
body: <p>How can I do this? I want a function to return a variable with the same type as one of its arguments. I need something like the below:</p>
  
  <pre><code>type Whatever struct {
      Title string
  }
  
  hey:= Whatever{Title:"YAY"}
  thetype := reflect.ValueOf(hey).Kind()
  
  // This does not work
  BB:= new(thetype)
  </code></pre>