{"id":8619221,"name":"github.com/2lambda123/pat","ecosystem":"go","description":"Package gorilla/pat is a request router and dispatcher with a pat-like\ninterface. It is an alternative to gorilla/mux that showcases how it can\nbe used as a base for different API flavors. Package pat is documented at:\n\nLet's start registering a couple of URL paths and handlers:\n\nHere we register three routes mapping URL paths to handlers. This is\nequivalent to how http.HandleFunc() works: if an incoming GET request matches\none of the paths, the corresponding handler is called passing\n(http.ResponseWriter, *http.Request) as parameters.\n\nNote: gorilla/pat matches path prefixes, so you must register the most\nspecific paths first.\n\nNote: differently from pat, these methods accept a handler function, and not an\nhttp.Handler. We think this is shorter and more convenient. To set an\nhttp.Handler, use the Add() method.\n\nPaths can have variables. They are defined using the format {name} or\n{name:pattern}. If a regular expression pattern is not defined, the matched\nvariable will be anything until the next slash. For example:\n\nThe names are used to create a map of route variables which are stored in the\nURL query, prefixed by a colon:\n\nAs in the gorilla/mux package, other matchers can be added to the registered\nroutes and URLs can be reversed as well. To build a URL for a route, first\nadd a name to it:\n\nThen you can get it using the name and generate a URL:\n\n...and the result will be a url.URL with the following path:\n\nCheck the mux documentation for more details about URL building and extra\nmatchers:","homepage":"https://github.com/2lambda123/pat","licenses":"BSD-3-Clause","normalized_licenses":["BSD-3-Clause"],"repository_url":"https://github.com/2lambda123/pat","keywords_array":[],"namespace":"github.com/2lambda123","versions_count":2,"first_release_published_at":"2019-06-27T04:19:31.000Z","latest_release_published_at":"2023-11-05T02:19:40.000Z","latest_release_number":"v1.0.2","last_synced_at":"2026-03-21T16:46:48.827Z","created_at":"2023-12-05T01:36:04.408Z","updated_at":"2026-03-21T16:46:48.827Z","registry_url":"https://pkg.go.dev/github.com/2lambda123/pat","install_command":"go get github.com/2lambda123/pat","documentation_url":"https://pkg.go.dev/github.com/2lambda123/pat#section-documentation","metadata":{},"repo_metadata":{"uuid":"726841907","full_name":"2lambda123/pat","owner":"2lambda123","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-03T19:33:18.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-12-03T20:28:27.172Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/2lambda123.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-12-03T15:07:12.000Z","updated_at":"2023-12-03T20:28:28.343Z","dependencies_parsed_at":"2023-12-03T20:38:30.759Z","dependency_job_id":null,"html_url":"https://github.com/2lambda123/pat","commit_stats":null,"previous_names":["2lambda123/pat"],"tags_count":4,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2lambda123%2Fpat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2lambda123%2Fpat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2lambda123%2Fpat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2lambda123%2Fpat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2lambda123","download_url":"https://codeload.github.com/2lambda123/pat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":174677205,"owners_count":10149302,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"repo_metadata_updated_at":"2023-12-05T01:36:11.102Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":0,"rankings":{"downloads":null,"dependent_repos_count":10.771707882697278,"dependent_packages_count":9.555904237689512,"stargazers_count":25.34783379277267,"forks_count":18.880903912260273,"docker_downloads_count":null,"average":16.139087456354932},"purl":"pkg:golang/github.com/2lambda123/pat","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/go/github.com/2lambda123/pat","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/go/github.com/2lambda123/pat","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/go/github.com/2lambda123/pat/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":null,"versions_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2F2lambda123%2Fpat/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2F2lambda123%2Fpat/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2F2lambda123%2Fpat/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2F2lambda123%2Fpat/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2F2lambda123%2Fpat/codemeta","maintainers":[]}