Created
February 15, 2014 20:59
-
-
Save rippinrobr/9025157 to your computer and use it in GitHub Desktop.
The beginnings of the attributes server
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 | |
// loading in the Martini package | |
import "github.com/codegangsta/martini" | |
func main() { | |
// if you are new to Go the := is a short variable declaration | |
m := martini.Classic() | |
// the func() call is creating an anonymous function that retuns a stringa | |
m.Get("/", func() string { | |
return "Where are the attributes?!?!" | |
}) | |
m.Run() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment