mirror of
https://github.com/adnanh/webhook.git
synced 2025-05-13 00:54:53 +00:00
For 3rd parties building binary packages, and for build consistency in general, it is very helpful to have the same set of dependencies at any time the product is built. See [tools/godep](https://github.com/tools/godep) for further details.
25 lines
702 B
Go
25 lines
702 B
Go
// Package negroni is an idiomatic approach to web middleware in Go. It is tiny, non-intrusive, and encourages use of net/http Handlers.
|
|
//
|
|
// If you like the idea of Martini, but you think it contains too much magic, then Negroni is a great fit.
|
|
//
|
|
// For a full guide visit http://github.com/urfave/negroni
|
|
//
|
|
// package main
|
|
//
|
|
// import (
|
|
// "github.com/urfave/negroni"
|
|
// "net/http"
|
|
// "fmt"
|
|
// )
|
|
//
|
|
// func main() {
|
|
// mux := http.NewServeMux()
|
|
// mux.HandleFunc("/", func(w http.ResponseWriter, req *http.Request) {
|
|
// fmt.Fprintf(w, "Welcome to the home page!")
|
|
// })
|
|
//
|
|
// n := negroni.Classic()
|
|
// n.UseHandler(mux)
|
|
// n.Run(":3000")
|
|
// }
|
|
package negroni
|