Skip to content

Instantly share code, notes, and snippets.

@takuan-osho
Created January 16, 2014 12:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takuan-osho/8454399 to your computer and use it in GitHub Desktop.
Save takuan-osho/8454399 to your computer and use it in GitHub Desktop.
package main
import (
"github.com/codegangsta/martini"
)
func main() {
// Martini setup
m := martini.Classic()
// Routing
m.Get("/", Hello)
// Run Martini
m.Run()
}
func Hello() string {
return "Hello string!"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment