{"id":31826034,"url":"https://github.com/go-spring/gs-init","last_synced_at":"2025-10-11T16:57:14.961Z","repository":{"id":306856815,"uuid":"1026496455","full_name":"go-spring/gs-init","owner":"go-spring","description":"🔥 [v0.0.3] 创建项目骨架(Create project skeleton)","archived":false,"fork":false,"pushed_at":"2025-10-03T14:24:50.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-03T16:26:52.666Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/go-spring.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-26T02:30:35.000Z","updated_at":"2025-10-03T14:24:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"69e720f4-9c0a-4d35-b0bb-fb4f87dc816d","html_url":"https://github.com/go-spring/gs-init","commit_stats":null,"previous_names":["go-spring/gs-new","go-spring/gs-init"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/go-spring/gs-init","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-spring%2Fgs-init","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-spring%2Fgs-init/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-spring%2Fgs-init/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-spring%2Fgs-init/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/go-spring","download_url":"https://codeload.github.com/go-spring/gs-init/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-spring%2Fgs-init/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279007970,"owners_count":26084369,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"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":"2025-10-11T16:57:11.139Z","updated_at":"2025-10-11T16:57:14.956Z","avatar_url":"https://github.com/go-spring.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gs-init\n\n`gs-init` is a command-line tool for initializing Go projects. It is based on\nthe [go-spring/skeleton](https://github.com/go-spring/skeleton) project template, allowing you to quickly create a\nwell-structured Go project.\n\n## Features\n\n* Create projects based on the [go-spring/skeleton](https://github.com/go-spring/skeleton) template\n* Automatically replace module name and package name\n* Support specifying a Git branch\n* Automatically generate project code\n\n## Installation\n\n* **Recommended way:**\n\nUse the [gs](https://github.com/go-spring/gs) integrated development tool.\n\n* To install this tool individually:\n\n```bash\ngo install github.com/go-spring/gs-init@latest\n```\n\n## Usage\n\n```bash\n# Basic usage, module name is required\ngs-init --module=github.com/your_name/your_project\n\n# Specify a branch\ngs-init --module=github.com/your_name/your_project --branch=main\n```\n\n## Flags\n\n* `--module`: Specify the project module name (required)\n* `--branch`: Specify the template branch to use, default is `main`\n\n## How It Works\n\n1. Clone the specified branch from the go-spring/skeleton repository\n2. Remove the `.git` directory to detach from the template repository\n3. Replace placeholders in the template with the actual module name and package name\n4. Rename the project directory\n5. Run the `gs gen` command to generate project code\n\n## License\n\nThis project is licensed under the [Apache License 2.0](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-spring%2Fgs-init","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgo-spring%2Fgs-init","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-spring%2Fgs-init/lists"}