{"repo":"qiaopengjun5162/gogen","free":true,"listed":false,"github":"https://github.com/qiaopengjun5162/gogen","clone":"git clone https://github.com/qiaopengjun5162/gogen.git","description":"A lightweight tool to generate projects from Git repositories or local templates with ease.","language":"Go","stars":12,"topics":["cli","code-generation","generator","go","template","template-engine","tool"],"license":"MIT","category":"cli-tools","readme_excerpt":"gogen Chinese Documentation 中文文档请参阅 README.zh.md。 Overview gogen is a lightweight project generation tool designed to scaffold new projects from Git repositories or local templates. It streamlines the process by cloning from a Git URL (with optional branch specification) or copying from a local path, while supporting basic template variable substitution. Features - Clone project templates from Git repositories (e.g., GitHub, GitLab). - Copy templates from local directories. - Specify a Git branch for cloning (optional). - Replace template variables in file contents, file names, and directory names. - Interactive CLI with ANSI-colored output and progress tracking. - Non-interactive generation with explicit project names and confirmation skipping. - Version output with embedded Git commit metadata. Quick Start Clone a template and generate a project in one command: Installation 1. Using Go : 2. Manual Build : This embeds the Git commit hash into the binary, visible through gogen --version . Usage Generate a project from a Git repository: Generate a project from a local template: Generate without interactive prompts: Pass custom template variables: Template variables are replaced in both file contents and paths. For example, a template file named {{project name}}/{{module name}}.txt can generate myproject/core.txt . Print build information: Options: Flag Description --- --- --git Git repository URL for the template. --local Local template directory path. --branch Git branch to c","default_branch":null,"files":null,"tree":[],"storefront":"/r/qiaopengjun5162","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/qiaopengjun5162/gogen/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}