Created
November 24, 2014 14:42
-
-
Save cdbkr/d2d32e6f21a2019c93df to your computer and use it in GitHub Desktop.
Simple Martini snippet Golang
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "github.com/go-martini/martini" | |
func main() { | |
m := martini.Classic() | |
m.Get("/", func() string { | |
return "Hello world!" | |
}) | |
m.Run() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment