title: Long queries in golang
body: <p>This is a question based on absolute no knowledge of golang and the aim is to find if there is a way to make long queries readable. </p>
  
  <p>My attempt is to put the sql text in a variable and then execute the variable.</p>
  
  <p>Pseudocode (no real code):</p>
  
  <pre><code>var query = 
  SELECT * FROM foo
  UNION ALL
  SELECT * FROM bar
  UNION ALL
  SELECT * FROM other
  ...
  
  db.prepare (var query)
  db.query (var query)
  </code></pre>
  
  <p>This is maybe a dumb question, but I have searched and found no clue how to make long queries more "readable" in go. Most examples are based on "hello world" level. In the real world queries can be quite long.</p>
  
  <p>TIA,</p>