{"id":26528973,"url":"https://github.com/i2bskn/dispatch","last_synced_at":"2025-06-13T17:33:22.977Z","repository":{"id":57577177,"uuid":"70976496","full_name":"i2bskn/dispatch","owner":"i2bskn","description":"HTTP request multiplexer","archived":false,"fork":false,"pushed_at":"2017-03-25T01:21:22.000Z","size":49,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-21T16:19:53.110Z","etag":null,"topics":["go","http","mux"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/i2bskn.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}},"created_at":"2016-10-15T08:38:38.000Z","updated_at":"2024-11-27T08:10:06.000Z","dependencies_parsed_at":"2022-09-11T22:50:44.925Z","dependency_job_id":null,"html_url":"https://github.com/i2bskn/dispatch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/i2bskn/dispatch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i2bskn%2Fdispatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i2bskn%2Fdispatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i2bskn%2Fdispatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i2bskn%2Fdispatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/i2bskn","download_url":"https://codeload.github.com/i2bskn/dispatch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i2bskn%2Fdispatch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259688474,"owners_count":22896426,"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"}},"keywords":["go","http","mux"],"created_at":"2025-03-21T16:19:38.475Z","updated_at":"2025-06-13T17:33:22.928Z","avatar_url":"https://github.com/i2bskn.png","language":"Go","readme":"# dispatch\n\n[![GoDoc](https://godoc.org/github.com/i2bskn/dispatch?status.svg)](https://godoc.org/github.com/i2bskn/dispatch)\n[![Build Status](https://travis-ci.org/i2bskn/dispatch.svg?branch=master)](https://travis-ci.org/i2bskn/dispatch)\n[![codecov](https://codecov.io/gh/i2bskn/dispatch/branch/master/graph/badge.svg)](https://codecov.io/gh/i2bskn/dispatch)\n\ndispatch is HTTP request multiplexer compatible with `ServeMux` of `net/http`.\n\n## Dependencies\n\n- [Go](https://golang.org/) 1.7 or lator\n\nNo dependency on the third party library.\n\n## Installation\n\n```\ngo get -u github.com/i2bskn/dispatch\n```\n\n## Usage\n\n```Go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n\n\t\"github.com/i2bskn/dispatch\"\n)\n\nfunc hello(w http.ResponseWriter, r *http.Request) {\n\tfmt.Fprintf(w, \"Hello %s!\", dispatch.Param(r, \"name\"))\n}\n\nfunc main() {\n\tmux := dispatch.New()\n\tmux.HandleFunc(\"/hello/:name\", hello)\n\tmux.HandleFunc(\"/\", func(w http.ResponseWriter, r *http.Request) {\n\t\tfmt.Fprint(w, \"Home!\")\n\t})\n\tlog.Fatal(http.ListenAndServe(\":8080\", mux))\n}\n```\n\nSee also [GoDoc](https://godoc.org/github.com/i2bskn/dispatch).\n\n## License\n\ndispatch is available under the MIT.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fi2bskn%2Fdispatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fi2bskn%2Fdispatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fi2bskn%2Fdispatch/lists"}