Martini middleware/handler for easily finding all routes of your app.

## Why?

I started playing with Go a couple of days ago, so I figured this would be a good chance to create a package and share it with the world, I love how easy [Martini]( makes web development in Go, so creating a middleware was naturally the first thought I had.

Fortunately for me, the functionality provided by Astrolabe was [asked for]( a while ago, so I didn't actually have to do much of work. It was a great exercise though.

## What's in a name?

I'm not really great at names, but my inspiration was the Rails' engine [Sextant](

## How to use

Astrolabe have only been tested with [martini.Classic()](, if you use [martini.New()]( and face any issues, please report the problem.

The route `/martini/routes` is only accessible in development. You can use the middleware in the following way:

// server.go
package main

import (

func main() {
  m := martini.Classic()
  // Add some routes.
  m.Get("/posts", func() string {
    return "Hello World!"
  // Use astrolabe (router is used to expose /martini/routes endpoint)


Visit `http://localhost:3000/martini/routes` to see a list of all the routes in your app.

## License

#### Disclaimer

Copyrights of some parts of the HTML code used belong to [Jeremy Saenz](, and is licensed under the MIT license.

Imports 1 package(s) ΒΆ