Skip to content

jimweirich/gotags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gotags

Tags

I got tired of exuberant ctags failing on Ruby code (see https://gist.github.com/jimweirich/5440424), so I wrote a version in go.

Features:

  • Ruby & Go only
  • Emacs TAGS file only
  • Minimal command line arguments
  • But it's fast

Detects:

  • Ruby (extensions .rb and .rake, also files named Rakefile)

    • Classes and Modules
    • Methods
    • Constants
    • attr_reader, attr_writer and attr_accessor definitions
    • Aliases
  • Go (extension .go)

    • Top level functions and variables
    • Interfaces
    • Structs
    • Methods

Usage:

$ gotags [options] file [file...]

Analyze all files listed in the command line. If the file is a directory, then recursively analyze all the files in that directory. If no files are listed, then the current directory ('.') is assumed.

Only the files and extensions listed above are actually handled, all other files are silently ignored.

Command Line Options:

  • -v -- Display the version of the program and exit.
  • -h -- Display a help message.

Building

Make sure you have a recent installation of the Go language on your system. Then do the following:

$ git clone git://github.com/jimweirich/gotags.git
$ cd gotags
$ go install onestepback.org/gotags
$ cp bin/gotags SOMEWHERE_IN_YOUR_PATH

See the Links Section for links to binary executables.

License

Copyright 2013 by Jim Weirich

This software is available under the MIT license. See MIT-LICENSE in the repository for details.

Links

About

Simple TAGS file generator written in go (compare to ctags or exuberant_ctags)

Resources

License

Stars

Watchers

Forks

Packages

No packages published