# go_template **Repository Path**: myzero1/go_template ## Basic Information - **Project Name**: go_template - **Description**: 用于创建golang项目的基本项目结构。 - **Primary Language**: Go - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-07-02 - **Last Updated**: 2025-07-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # go_template #### 介绍 用于创建 golang 项目的基本项目结构。 #### 软件架构 软件架构说明 ``` go_template/ ├── cmd 可执行文件目录 │   └── rs │   ├── config │   │   └── config_template.yaml │   └── main.go ├── go.mod ├── go.sum ├── internal 项目内部使用的包 │   └── lib1 │   └── lib1.go ├── LICENSE ├── pkg 可在项目内部使用的包 │   └── lib2 │   └── lib2.go ├── README.en.md ├── README.md └── scripts 脚本目录 ├── env 环境目录 │   ├── checkEnv.sh │   ├── clean_docker.sh │   ├── docker-compose.yml │   ├── mysql │   │   ├── cnf │   │   │   ├── my.cnf │   │   │   └── my.detail.cnf │   │   └── data │   ├── nginx │   │   └── conf │   │   ├── conf.d │   │   │   ├── api.conf.bak │   │   │   ├── backend.conf.bak │   │   │   ├── myzero1.xyz_bundle.crt │   │   │   ├── myzero1.xyz.key │   │   │   ├── office.conf │   │   │   └── office.conf.bak │   │   └── nginx.conf │   └── workspace-pub │   └── app │   ├── 50x.html │   ├── cli.php │   ├── index.html │   └── info.php └── release 发布目录 ├── release ├── release.sh └── upx-3.96-win64.exe ``` #### 安装教程 1. xxxx 2. xxxx 3. xxxx #### 使用说明 初始化 ``` 1 git clone https://gitee.com/myzero1/go_template.git 2 mv go_template my_project 3 cd my_project && bash scripts/replace_mod_reinit_git.sh 4 按照需求调整文件,开始新的项目 ``` 发布 ``` 1 cd scripts/release 2 bash release.s [projectName] ``` #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme_XXX.md 来支持不同的语言,例如 Readme_en.md, Readme_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)