{"id":13462437,"url":"https://github.com/codegangsta/gin","last_synced_at":"2025-04-10T23:25:52.592Z","repository":{"id":40598694,"uuid":"11663059","full_name":"codegangsta/gin","owner":"codegangsta","description":"Live reload utility for Go web servers","archived":false,"fork":false,"pushed_at":"2023-02-18T06:37:34.000Z","size":2355,"stargazers_count":4242,"open_issues_count":81,"forks_count":313,"subscribers_count":62,"default_branch":"master","last_synced_at":"2025-04-03T14:07:03.941Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/codegangsta.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}},"created_at":"2013-07-25T14:48:24.000Z","updated_at":"2025-03-29T16:11:12.000Z","dependencies_parsed_at":"2022-08-09T23:50:31.498Z","dependency_job_id":"fb7e20c0-87e7-4749-8833-d2db517bc0c6","html_url":"https://github.com/codegangsta/gin","commit_stats":{"total_commits":120,"total_committers":35,"mean_commits":"3.4285714285714284","dds":"0.41666666666666663","last_synced_commit":"2c98d96c9244c7426e985119b522f6e85c4bc81f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codegangsta%2Fgin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codegangsta%2Fgin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codegangsta%2Fgin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codegangsta%2Fgin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codegangsta","download_url":"https://codeload.github.com/codegangsta/gin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248313783,"owners_count":21082912,"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-07-31T12:00:47.716Z","updated_at":"2025-04-10T23:25:52.570Z","avatar_url":"https://github.com/codegangsta.png","language":"Go","readme":"gin [![wercker status](https://app.wercker.com/status/f413ccbd85cfc4a58a37f03dd7aaa87e \"wercker status\")](https://app.wercker.com/project/bykey/f413ccbd85cfc4a58a37f03dd7aaa87e)\n========\n\n`gin` is a simple command line utility for live-reloading Go web applications.\nJust run `gin` in your app directory and your web app will be served with\n`gin` as a proxy. `gin` will automatically recompile your code when it\ndetects a change. Your app will be restarted the next time it receives an\nHTTP request.\n\n`gin` adheres to the \"silence is golden\" principle, so it will only complain\nif there was a compiler error or if you succesfully compile after an error.\n\n## Installation\n\nAssuming you have a working Go environment and `GOPATH/bin` is in your\n`PATH`, `gin` is a breeze to install:\n\n```shell\ngo install github.com/codegangsta/gin@latest\n```\n\nThen verify that `gin` was installed correctly:\n\n```shell\ngin help\n```\n## Basic usage\n```shell\ngin run main.go\n```\nOptions\n```\n   --laddr value, -l value       listening address for the proxy server\n   --port value, -p value        port for the proxy server (default: 3000)\n   --appPort value, -a value     port for the Go web server (default: 3001)\n   --bin value, -b value         name of generated binary file (default: \"gin-bin\")\n   --path value, -t value        Path to watch files from (default: \".\")\n   --build value, -d value       Path to build files from (defaults to same value as --path)\n   --excludeDir value, -x value  Relative directories to exclude\n   --immediate, -i               run the server immediately after it's built\n   --all                         reloads whenever any file changes, as opposed to reloading only on .go file change\n   --godep, -g                   use godep when building\n   --buildArgs value             Additional go build arguments\n   --certFile value              TLS Certificate\n   --keyFile value               TLS Certificate Key\n   --logPrefix value             Setup custom log prefix\n   --notifications               enable desktop notifications\n   --help, -h                    show help\n   --version, -v                 print the version\n```\n\n## Supporting Gin in Your Web app\n`gin` assumes that your web app binds itself to the `PORT` environment\nvariable so it can properly proxy requests to your app. Web frameworks\nlike [Martini](http://github.com/codegangsta/martini) do this out of\nthe box.\n\n## Using flags?\nWhen you normally start your server with [flags](https://godoc.org/flag)\nif you want to override any of them when running `gin` we suggest you\ninstead use [github.com/namsral/flag](https://github.com/namsral/flag)\nas explained in [this post](http://stackoverflow.com/questions/24873883/organizing-environment-variables-golang/28160665#28160665)\n\nIf you want to still use the standard flag package but support environment variables, you might want to try [github.com/peak6/envflag](https://github.com/peak6/envflag).\n","funding_links":[],"categories":["Uncategorized","开源类库","Go","Open source library","后端开发框架及项目","Best practices"],"sub_categories":["Uncategorized","构建编译","Build And Compile","管理面板"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodegangsta%2Fgin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodegangsta%2Fgin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodegangsta%2Fgin/lists"}