Git Product home page Git Product logo

gotags's Introduction

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

gotags's People

Contributors

jimweirich avatar zmalltalker avatar

Watchers

Namhyung Kim avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.