{"id":51228035,"url":"https://github.com/paradeum-team/gin-web-demo","last_synced_at":"2026-06-28T13:02:18.699Z","repository":{"id":45307978,"uuid":"192878471","full_name":"paradeum-team/gin-web-demo","owner":"paradeum-team","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-05T02:34:29.000Z","size":14874,"stargazers_count":0,"open_issues_count":5,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-02-15T06:24:11.558Z","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/paradeum-team.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-06-20T08:13:32.000Z","updated_at":"2021-12-22T14:49:19.000Z","dependencies_parsed_at":"2022-09-17T04:31:47.282Z","dependency_job_id":null,"html_url":"https://github.com/paradeum-team/gin-web-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/paradeum-team/gin-web-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paradeum-team%2Fgin-web-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paradeum-team%2Fgin-web-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paradeum-team%2Fgin-web-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paradeum-team%2Fgin-web-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paradeum-team","download_url":"https://codeload.github.com/paradeum-team/gin-web-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paradeum-team%2Fgin-web-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34889047,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-28T02:00:05.809Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-06-28T13:02:15.700Z","updated_at":"2026-06-28T13:02:18.692Z","avatar_url":"https://github.com/paradeum-team.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 使用gin 框架 搭建自己的 web api\n\n[gin 参考资料](https://github.com/gin-gonic/gin)\n\n\n---------\n## 简述\n- 集成golog ，用于业务日志输出\n- 集成gprofile,可参数化系统配置。 [参考](https://github.com/flyleft/gprofile)\n\n    ```\n    #1.//通过环境变量覆盖配置，\n    比如设置EUREKA_INSTANCE_LEASERENEWALINTERVALINSECONDS环境变量值覆盖eureka.instance.leaseRenewalIntervalInSeconds\n    \n    ```\n- 日志中间件：输出请求的 uri 相关信息\n- 集成swagger。自动生成在线api 文档 。访问地址：http://ip:port/[context-path]/api/index.html （eg:http://localhost:8188/dsp/api/index.html）\n- 增加 中间件 middlewares[cors，authority]，在Bootstrapper 中全局使用\n- 修改日志输出模式：同时输出 stdout，file\n---\n## swagger 具体使用\n[swagger](./swagger.md)\n\n[swagger api具体使用 ](https://github.com/swaggo/swag)\n\n\n## 性能优化工具 pprof\n[Golang使用pprof进行性能优化](./pprof.md)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparadeum-team%2Fgin-web-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparadeum-team%2Fgin-web-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparadeum-team%2Fgin-web-demo/lists"}