title: Go chained function calls?
body: <p>Not sure what the correct name is, but I'm looking for more information about "chained function calls" in Go. For example:</p>
  
  <p><code>foo.DoSomething().WithThisOptionalThing()</code></p>
  
  <p>So I can use <code>foo.DoSomething()</code> but with the possibility to add <code>.WithThisOptionalThing()</code> which does something extra's. Is this possible? Please point me in the right direction / provide some examples.</p>