{"id":34197183,"url":"https://github.com/slavabobik/xbinder","last_synced_at":"2026-03-12T01:33:53.986Z","repository":{"id":64303765,"uuid":"197379942","full_name":"slavabobik/xbinder","owner":"slavabobik","description":"Bind http query parameters into a structure","archived":false,"fork":false,"pushed_at":"2019-08-13T21:31:50.000Z","size":9,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T19:24:39.709Z","etag":null,"topics":["binder","go","http","query-params"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/slavabobik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-17T11:55:11.000Z","updated_at":"2019-11-26T10:08:51.000Z","dependencies_parsed_at":"2023-01-15T10:00:53.141Z","dependency_job_id":null,"html_url":"https://github.com/slavabobik/xbinder","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/slavabobik/xbinder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slavabobik%2Fxbinder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slavabobik%2Fxbinder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slavabobik%2Fxbinder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slavabobik%2Fxbinder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slavabobik","download_url":"https://codeload.github.com/slavabobik/xbinder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slavabobik%2Fxbinder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30411883,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T00:40:14.898Z","status":"ssl_error","status_checked_at":"2026-03-12T00:40:08.439Z","response_time":84,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["binder","go","http","query-params"],"created_at":"2025-12-15T17:33:54.849Z","updated_at":"2026-03-12T01:33:53.979Z","avatar_url":"https://github.com/slavabobik.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"xbinder\n=======\n\n[![codecov](https://codecov.io/gh/SlavaBobik/xbinder/branch/master/graph/badge.svg)](https://codecov.io/gh/SlavaBobik/xbinder)  \n\nBind your struct from http query params  \n## Install\n```\ngo get -u github.com/slavabobik/xbinder\n``` \n\n## Example \n```go\ntype Pet struct {\n\tName    string\n\tAge     int\n\tHobbies []string\n}\n\nfunc MyHandler(w http.ResponseWriter, r *http.Request) {\n\t//for e.g. you have a query http://example.com?name=snowball\u0026age=2\u0026hobbies=eat,sleep,repeat\n\tvalues := r.URL.Query()\n\n\tvar pet Pet\n\terr := xbinder.FromQuery(\u0026pet, values)\n\tif err != nil {\n\t\t// Handle error\n\t}\n}\n```\n\nSupported field types:\n* bool\n* int, int8,  int16, int32, int64\n* string\n* int, string slices\n\nUnsupported field types:\n* float\n* pointers\n* uint\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslavabobik%2Fxbinder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslavabobik%2Fxbinder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslavabobik%2Fxbinder/lists"}