We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
`package main
import ( "fmt" "github.com/julienschmidt/httprouter" "log" "net/http" )
func Hello(w http.ResponseWriter, r *http.Request, ps httprouter.Params) { fmt.Fprintf(w, "hello, %s!\n", ps.ByName("name")) }
func main() { router := httprouter.New() router.ServeFiles("/*filepath", http.Dir("./templates")) router.GET("/hello/:name", Hello) log.Fatal(http.ListenAndServe(":8080", router)) }`
panic: '/hello/:name' in new path '/hello/:name' conflicts with existing wildcard '/*filepath' in existing prefix '/*filepath'
The text was updated successfully, but these errors were encountered:
Adding documentation for how to issue curl requests (julienschmidt#347)
699ddf0
Signed-off-by: Aaron Schlesinger <[email protected]>
No branches or pull requests
`package main
import (
"fmt"
"github.com/julienschmidt/httprouter"
"log"
"net/http"
)
func Hello(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
fmt.Fprintf(w, "hello, %s!\n", ps.ByName("name"))
}
func main() {
router := httprouter.New()
router.ServeFiles("/*filepath", http.Dir("./templates"))
router.GET("/hello/:name", Hello)
log.Fatal(http.ListenAndServe(":8080", router))
}`
panic: '/hello/:name' in new path '/hello/:name' conflicts with existing wildcard '/*filepath' in existing prefix '/*filepath'
The text was updated successfully, but these errors were encountered: