title: How to make possible to return structs of different types from one function with Golang?
body: <p>I have a function which queries database, then, depending on result form it, can create a struct <code>OrderWithoutDetails</code> or <code>OrderWithDetails</code> depending on the presence of details about the order.</p>
  
  <p>How do I make the function to be able to return result of both types?</p>