title: GoLang ast: generating and printing a tree without position information
body: <p>I'm looking to make a tool which generates method stubs from some given input. I've seen  <a href="https://golang.org/pkg/go/ast/" rel="noreferrer">the <code>ast</code> package</a>, but it seems to represent an already parsed AST, which has information about where in the source file everything is. Importantly, you need to provide source information</p>
  
  <p>I'm looking at generating a source file programatically, so I have no idea where in the final file my AST nodes will end up.</p>
  
  <p>I'm wondering:</p>
  
  <ul>
  <li>Is there a better AST tool which lets you generate code without giving source file position information?</li>
  <li>If I give dummy information for positions in the <code>ast</code> package, will it pretty-print properly (i.e. ignore the position information)?</li>
  </ul>
  
  <p>I realize I <em>could</em> do this all with text generation, but that seems type-unsafe and harder to deal with.</p>