{"id":51975,"library":"bmizerany-pat","title":"pat","description":"Package pat implements a simple URL pattern muxer.","status":"active","version":"0.0.0-20210406213842-e4b6760bdd6f","language":"go","source_language":null,"source_url":"https://github.com/bmizerany/pat","tags":["http","router","url-matching","mux"],"install":[{"cmd":"go get github.com/bmizerany/pat","lang":"bash","label":"Install github.com/bmizerany/pat"}],"dependencies":[],"imports":[{"symbol":"pat","correct":"github.com/bmizerany/pat"}],"quickstart":{"code":"package main\n\nimport (\n\t\"net/http\"\n\t\"github.com/bmizerany/pat\"\n)\n\nfunc main() {\n\tmux := pat.New()\n\tmux.Get(\"/hello/:name\", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tw.Write([]byte(\"Hello, \" + r.URL.Query().Get(\":name\")))\n\t}))\n\thttp.ListenAndServe(\":8080\", mux)\n}","lang":"go","description":"Create a simple HTTP server with named URL parameters."},"warnings":[{"fix":"Migrate to a more maintained router like github.com/go-chi/chi.","message":"Pat is no longer actively maintained; consider using chi or gorilla/mux instead.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'http':10 'implement':4 'match':14 'mux':15 'muxer':9 'packag':2 'pat':1,3 'pattern':8 'router':11 'simpl':6 'url':7,13 'url-match':12","created_at":"2026-06-15T06:36:50.628432+00:00","updated_at":"2026-06-15T06:36:50.628432+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/bmizerany/pat","github":"https://github.com/bmizerany/pat","docs":"https://pkg.go.dev/github.com/bmizerany/pat#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}