title: Is there a command line tool in Golang to only check syntax of my source code?
body: <p>For example there is a <code>-c</code> option in Ruby that checks syntax before running a code:</p>
  
  <pre><code>C:\&gt;ruby --help
  Usage: ruby [switches] [--] [programfile] [arguments]
  -c              check syntax only
  
  C:\&gt;ruby -c C:\foo\ruby\my_source_code.rb
  Syntax OK
  </code></pre>
  
  <p>Is there a similar functionality in Go?</p>
  
  <p>P.S. An example from Ruby is only because I know it in Ruby. Not because of trolling or something.</p>