{"id":21095366,"url":"https://github.com/d6o/itihost","last_synced_at":"2025-03-14T07:12:36.982Z","repository":{"id":146437308,"uuid":"83179383","full_name":"d6o/ItiHost","owner":"d6o","description":"Host Matcher to Itinerary Router","archived":false,"fork":false,"pushed_at":"2017-02-26T04:15:30.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-21T01:44:01.163Z","etag":null,"topics":["go","golang","golang-library","golang-package","golang-router","golang-tools","http","mux","router"],"latest_commit_sha":null,"homepage":"https://disiqueira.github.io/ItiHost","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/d6o.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-26T03:14:16.000Z","updated_at":"2017-02-26T04:15:52.000Z","dependencies_parsed_at":"2023-03-30T11:06:54.116Z","dependency_job_id":null,"html_url":"https://github.com/d6o/ItiHost","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d6o%2FItiHost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d6o%2FItiHost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d6o%2FItiHost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d6o%2FItiHost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d6o","download_url":"https://codeload.github.com/d6o/ItiHost/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243538135,"owners_count":20307104,"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","golang","golang-library","golang-package","golang-router","golang-tools","http","mux","router"],"created_at":"2024-11-19T22:25:37.569Z","updated_at":"2025-03-14T07:12:36.959Z","avatar_url":"https://github.com/d6o.png","language":"Go","readme":"# ItiHost ![Language Badge](https://img.shields.io/badge/Language-Go-blue.svg) ![Go Report](https://goreportcard.com/badge/github.com/DiSiqueira/ItiHost) ![License Badge](https://img.shields.io/badge/License-MIT-blue.svg) ![Status Badge](https://img.shields.io/badge/Status-Stable-brightgreen.svg)\n\nItiHost is a matcher to be used in the [Itinerary][itinerary].\n\nWill Match with the request host value.\n\n[itinerary]: https://github.com/DiSiqueira/Itinerary\n\n## Project Status\n\nItiHost is stable. Pull Requests [are welcome](https://github.com/DiSiqueira/ItiHost#social-coding)\n\n## Installation\n\n### Go Get\n\n```bash\n$ go get github.com/disiqueira/itihost\n```\n\n## Basic usage\n\n```go\nr := itinerary.NewRouter()\n\nr.NewPath(RateHandler).AddMatcher(itihost.New(\"diego.itinerary.test\"))\n```\n\n## Full Example\n\n```go\nimport (\n\t\"github.com/disiqueira/itihost\"\n\t\"github.com/disiqueira/itinerary\"\n\t\"net/http\"\n)\n\nfunc RateHandler(w http.ResponseWriter, r *http.Request) {\n\tw.Write([]byte(\"This is my Host!!\"))\n}\n\nfunc main() {\n\tr := itinerary.NewRouter()\n\n\tr.NewPath(RateHandler).AddMatcher(itihost.New(\"disiqueira.itinerary.test\"))\n\n\thttp.ListenAndServe(\":8000\", r)\n}\n```\n\n## Contributing\n\n### Bug Reports \u0026 Feature Requests\n\nPlease use the [issue tracker](https://github.com/DiSiqueira/ItiHost/issues) to report any bugs or file feature requests.\n\n### Developing\n\nPRs are welcome. To begin developing, do this:\n\n```bash\n$ git clone https://github.com/DiSiqueira/ItiHost.git itihost\n$ cd itiwildcard/\n```\n\n## Social Coding\n\n1. Create an issue to discuss about your idea\n2. [Fork it] (https://github.com/DiSiqueira/ItiHost/fork)\n3. Create your feature branch (`git checkout -b my-new-feature`)\n4. Commit your changes (`git commit -am 'Add some feature'`)\n5. Push to the branch (`git push origin my-new-feature`)\n6. Create a new Pull Request\n7. Profit! :white_check_mark:\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2013-2017 Diego Siqueira\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd6o%2Fitihost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd6o%2Fitihost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd6o%2Fitihost/lists"}