Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hjklchan/valyego
Go标准应用模板项目
https://github.com/hjklchan/valyego
gin golang swagger template-project
Last synced: about 1 month ago
JSON representation
Go标准应用模板项目
- Host: GitHub
- URL: https://github.com/hjklchan/valyego
- Owner: hjklchan
- License: mit
- Created: 2023-02-11T12:19:34.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-16T12:16:29.000Z (almost 2 years ago)
- Last Synced: 2024-03-14T02:43:45.479Z (10 months ago)
- Topics: gin, golang, swagger, template-project
- Language: Go
- Homepage:
- Size: 97.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Go标准应用模板项目
### 依赖包
```bash
# swagger :undo:
go install github.com/go-swagger/go-swagger/cmd/swagger@latest# LICENSE 文件
go install github.com/nishanths/license/v5@latest
license -list # 查看支持的代码协议
$ license -n 'Illus1onnn <[email protected]>' -o LICENSE mit # 项目根目录下执行# Gin Http 框架
go get github.com/gin-gonic/gin
# UUID
go get github.com/google/uuid
# Cobra 命令行工具
github.com/spf13/cobra v1.6.1
# Viper 配置
github.com/spf13/viper v1.15.0
```### 编译和运行 Zcar 应用
```bash
# windows
go build -o _output/zcar.exe -v cmd/zcar/main.go
# linux
go build -o _output/zcar -v cmd/zcar/main.go# 运行
# windows
go run .\\cmd\\zcar\\main.go --config configs/
```