{"id":19253527,"url":"https://github.com/webcyou/go_api_sample","last_synced_at":"2026-06-29T03:30:21.320Z","repository":{"id":68798820,"uuid":"75544586","full_name":"webcyou/go_api_sample","owner":"webcyou","description":"The Go Programming Language - API sample","archived":false,"fork":false,"pushed_at":"2016-12-13T07:24:44.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-05T07:15:57.628Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webcyou.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-04T15:04:41.000Z","updated_at":"2019-03-29T08:25:45.000Z","dependencies_parsed_at":"2023-02-21T10:15:26.772Z","dependency_job_id":null,"html_url":"https://github.com/webcyou/go_api_sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webcyou%2Fgo_api_sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webcyou%2Fgo_api_sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webcyou%2Fgo_api_sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webcyou%2Fgo_api_sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webcyou","download_url":"https://codeload.github.com/webcyou/go_api_sample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240347981,"owners_count":19787237,"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":[],"created_at":"2024-11-09T18:31:31.115Z","updated_at":"2026-06-29T03:30:21.280Z","avatar_url":"https://github.com/webcyou.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Language - API sample\n\n\n## Web Framework \n\n[Gin Web Framework](https://github.com/gin-gonic/gin)\n\n\n```\ngo get gopkg.in/gin-gonic/gin.v1\n```\n\n## ORM library\n\n[GORM](https://github.com/jinzhu/gorm)\n\n```\ngo get -u github.com/jinzhu/gorm\n```\n\t\n## API\n\t\nHello world!\n```$xslt\nhttp://localhost:8080/\n```\n\nAll Users\n```\nhttp://localhost:8080/users/\n```\n\n### Example\n\n```$xslt\n{\n  \"users\": [\n    {\n      \"id\": 1,\n      \"name\": \"ユーザー1\",\n      \"items\": [\n      {\n        \"id\": 1, \n        \"name\": \"ゲーム1\", \n        \"score\": 5, \n        \"user_id\": 1\n      }, \n      {\n        \"id\": 2,\n        \"name\": \"ゲーム2\", \n        \"score\": 0, \n        \"user_id\": 1\n      }, \n      ...          {\n      ] \n    }, \n    {\n      \"id\": 2,\n      \"name\": \"ユーザー1\",\n      \"items\": [\n      {\n        \"id\": 9, \n        \"name\": \"ゲーム3\", \n        \"score\": 1, \n        \"user_id\": 2\n      }, \n      ...\n      ] \n    },\n    ...\n  ]\n}\n```\n\n\nUser \u0026 MatchingUsers\n```\nhttp://localhost:8080/users/:id\n```\n\n### Example\n\n```\n{\n  \"user\": {\n    \"id\": 2,\n    \"name\": \"ユーザー2\",\n    \"items\": [\n      {\n        \"id\": 9, \n        \"name\": \"ゲーム1\", \n        \"score\": 1, \n        \"user_id\": 2\n      }, \n      {\n        \"id\": 10, \n        \"name\": \"ゲーム2\", \n        \"score\": 1, \n        \"user_id\": 2\n      }, \n      {\n        \"id\": 11, \n        \"name\": \"ゲーム3\", \n        \"score\": 3, \n        \"user_id\": 2\n      },\n      ...\n    ]\n  },\n  \"matching_users\": [\n    {\n      \"id\": 1, \n      \"name\": \"ユーザー1\", \n      \"score\": 0.10886898139200682\n    }, \n    {\n      \"id\": 9, \n      \"name\": \"ユーザー9\", \n      \"score\": 0.1\n    }, \n    {\n      \"id\": 7, \n      \"name\": \"ユーザー7\", \n      \"score\": 0.08462632608958592\n    }, \n    {\n      \"id\": 4, \n      \"name\": \"ユーザー4\", \n      \"score\": 0.08270931562630669\n    },\n    ...\n  ]\n}\n```\n\n## Algorithm\nThe basic scoring algorithm is Euclidean distance\n\n```math\nd(p,q)=d(q,p)=\\sqrt{(q_1-p_1)^2+(q_2-p_2)^2+\\cdots+(q_n+p_n)^2}\n```\n\n\n## Author\n\n**Daisuke Takayama**\n* [@webcyou](https://twitter.com/webcyou)\n* [@panicdragon](https://twitter.com/panicdragon)\n* \u003chttps://github.com/webcyou\u003e\n* \u003chttps://github.com/panicdragon\u003e\n* \u003chttp://www.webcyou.com/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebcyou%2Fgo_api_sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebcyou%2Fgo_api_sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebcyou%2Fgo_api_sample/lists"}