1
0
Fork 0
mirror of https://github.com/alice-lg/birdwatcher.git synced 2025-03-09 00:00:05 +01:00

test endpoint

This commit is contained in:
Daniel Melani 2016-10-23 09:51:40 +02:00
parent 97a2343dc5
commit 08c22dcd72

View file

@ -1,4 +1,19 @@
package main
func main() {
import (
"fmt"
"github.com/julienschmidt/httprouter"
"log"
"net/http"
)
func Test(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
fmt.Fprint(w, "Test\n")
}
func main() {
r := httprouter.New()
r.GET("/test", Test)
log.Fatal(http.ListenAndServe(":8080", r))
}