I'm trying to deploy my first golang app on GAE. For some reasons the products handler doesn't resolve and I get 404 errors. Am I missing something ?
package test
import "github.com/gorilla/mux"
import (
"fmt"
"net/http"
)
func main() {
r := mux.NewRouter()
r.HandleFunc("/products", ProductsHandler)
http.Handle("/", r)
e := http.ListenAndServe(":8080", r)
if e != nil {
println(e.Error())
}
}
func ProductsHandler(w http.ResponseWriter, r *http.Request) {
fmt.Fprint(w, "Hello, you!")
}