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

	router.Get("stream", StreamHandler)

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

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

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

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

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