{"id":13693982,"url":"https://github.com/go-kiss/sniper","last_synced_at":"2026-01-24T12:38:29.061Z","repository":{"id":37403929,"uuid":"191665478","full_name":"go-kiss/sniper","owner":"go-kiss","description":"轻量级 go 业务框架","archived":false,"fork":false,"pushed_at":"2023-04-24T09:40:44.000Z","size":371,"stargazers_count":1251,"open_issues_count":0,"forks_count":174,"subscribers_count":28,"default_branch":"master","last_synced_at":"2025-04-01T11:04:52.748Z","etag":null,"topics":["go","golang","golang-framework","grpc","http","rpc"],"latest_commit_sha":null,"homepage":"https://taoshu.in/go/sniper.html","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/go-kiss.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}},"created_at":"2019-06-13T01:00:02.000Z","updated_at":"2025-03-20T16:22:33.000Z","dependencies_parsed_at":"2024-01-14T19:04:35.917Z","dependency_job_id":"d41c2a0b-21c2-43b5-852f-acac85433ee8","html_url":"https://github.com/go-kiss/sniper","commit_stats":{"total_commits":155,"total_committers":19,"mean_commits":8.157894736842104,"dds":0.5483870967741935,"last_synced_commit":"779b9e361ed78b593240cba3921c9cee0f5ce427"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-kiss%2Fsniper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-kiss%2Fsniper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-kiss%2Fsniper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-kiss%2Fsniper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/go-kiss","download_url":"https://codeload.github.com/go-kiss/sniper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247838446,"owners_count":21004580,"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-framework","grpc","http","rpc"],"created_at":"2024-08-02T17:01:21.727Z","updated_at":"2026-01-24T12:38:29.055Z","avatar_url":"https://github.com/go-kiss.png","language":"Go","funding_links":[],"categories":["Go","Repositories"],"sub_categories":[],"readme":"# Sniper 轻量级业务框架\n\nSniper 是一套轻量级但又很现代化的业务框架。轻量体现在只集成了最必要的功能，现代\n则体现在接口描述IDL、可观测、强大的脚手架等方面。\n\nSniper 框架从 2018 年开发并开源，在我们业务生产环境平稳运行，至少可以应对五百万 \nDAU量级的业务。我们也不断把多年的生产实践经验固化到 Sniper 框架，希望能帮助更多 \n的朋友。\n\n有兴趣的同学也可以加我的微信`taoshu-in`我拉大家进群讨论。\n\n## 系统要求\n\nSniper 仅支持 UNIX 环境。Windows 用户需要在 WSL 下使用。\n\n环境准备好之后，需要安装以下工具的最新版本：\n\n- go\n- git\n- make\n- [protoc](https://github.com/google/protobuf)\n\n## 快速入门\n\n安装 sniper 脚手架：\n\n```bash\ngo install github.com/go-kiss/sniper/cmd/sniper@latest\n```\n\n创建一个新项目：\n\n```bash\nsniper new --pkg helloworld\n```\n\n切换到 helloworld 目录。\n\n运行服务：\n\n```bash\nCONF_PATH=`pwd` go run main.go http\n```\n\n使用 [httpie](https://httpie.io) 调用示例接口：\n\n```bash\nhttp :8080/foo.v1.Bar/Echo msg=hello\n```\n\n应该会收到如下响应内容：\n\n```\nHTTP/1.1 200 OK\nContent-Length: 15\nContent-Type: application/json\nDate: Thu, 14 Oct 2021 09:49:16 GMT\nX-Trace-Id: 08c408b0a4cd12c0\n\n{\n    \"msg\": \"hello\"\n}\n```\n\n## 深入理解\n\nSniper 框架几乎每一个目录下都有 README.md 文件，建议仔细阅读。\n\n如需了解 Sniper 框架的工作原理和设计原则，请移步我的[博客](https://taoshu.in/go/sniper.html)。\n\n## 赞助商\n\n[![Powered by DartNode](https://dartnode.com/branding/DN-Open-Source-sm.png)](https://dartnode.com \"Powered by DartNode - Free VPS for Open Source\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-kiss%2Fsniper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgo-kiss%2Fsniper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-kiss%2Fsniper/lists"}