https://github.com/helloxz/go-init
一个用于快速初始化 Golang Web 项目的自动化工具。
https://github.com/helloxz/go-init
Last synced: 10 months ago
JSON representation
一个用于快速初始化 Golang Web 项目的自动化工具。
- Host: GitHub
- URL: https://github.com/helloxz/go-init
- Owner: helloxz
- License: gpl-3.0
- Created: 2025-03-08T11:09:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-08T11:17:41.000Z (over 1 year ago)
- Last Synced: 2025-03-08T12:19:49.451Z (over 1 year ago)
- Language: Shell
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-init
一个用于快速初始化 Golang Web 项目的自动化工具。
### 内置包
* github.com/gin-gonic/gin
* github.com/spf13/viper
* github.com/tidwall/gjson
* github.com/coocood/freecache
* github.com/go-resty/resty/v2
### 使用
```bash
# project_name改为你自己的项目名称
curl -s "https://raw.githubusercontent.com/helloxz/go-init/refs/heads/main/init.sh" | bash -s project_name
# 运行
go run main.go start
```
默认端口为`2080`,访问`http://IP:2080`
### 文件说明
* 配置文件:`data/config/config.toml`
* 路由:`router/routers.go`
* 中间件:`middleware`