Skip to content

Instantly share code, notes, and snippets.

@rippinrobr
Created February 15, 2014 20:59
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 rippinrobr/9025157 to your computer and use it in GitHub Desktop.
Save rippinrobr/9025157 to your computer and use it in GitHub Desktop.
The beginnings of the attributes server
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