title: ctag database for Go
body: <p>How to generate tags file for Go source</p>
  
  <p>In mac, I installed exuberant ctags , and tried the below command in source directory</p>
  
  <pre><code>ctags -f gosource.tags -R `pwd`
  </code></pre>
  
  <p>But, it doesn't consider *.go files. Do I have to use -h option? But, isn't it only for header files, as per the manual?</p>
  
  <p>Please give me the correct command so that I can use the tags file with vim. I also prefer absolute path so that I can keep the file anywhere</p>
  
  <p>Thanks.</p>
  
  <p>Edit:
  I assumed current ctags support Go, seeing <a href="http://groups.google.com/group/golang-nuts/browse_thread/thread/3a4848db231b02c9" rel="noreferrer">http://groups.google.com/group/golang-nuts/browse_thread/thread/3a4848db231b02c9</a>.</p>
  
  <p>but, <a href="http://ctags.sourceforge.net/languages.html" rel="noreferrer">http://ctags.sourceforge.net/languages.html</a>  desn't have go listed.</p>