Beispiel #1
0
func main() {
	router := dapper.NewRouter()

	router.Get("stream", StreamHandler)

	http.ListenAndServe(":4000", router)
}
Beispiel #2
0
func main() {
	router := dapper.NewRouter()

	router.Get("(?P<filename>.*)/info/refs", Handler)

	http.ListenAndServe(":4000", router)
}
Beispiel #3
0
func main() {
	router := dapper.NewRouter()

	router.Root(HomeHandler)
	router.Get("hello", OtherHandler)

	http.ListenAndServe(":4000", router)
}