Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/caomeiyouren/go-gin-template
基于 Go 的 Gin 项目模板
https://github.com/caomeiyouren/go-gin-template
gin golang template
Last synced: 6 days ago
JSON representation
基于 Go 的 Gin 项目模板
- Host: GitHub
- URL: https://github.com/caomeiyouren/go-gin-template
- Owner: CaoMeiYouRen
- License: mit
- Created: 2023-10-03T13:05:52.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-05-07T21:15:34.000Z (6 months ago)
- Last Synced: 2024-05-17T20:54:21.293Z (6 months ago)
- Topics: gin, golang, template
- Language: Go
- Homepage:
- Size: 56.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-gin-template
基于 Go 的 Gin 项目模板
## 依赖要求
- go >=1.18
## 安装依赖
```sh
go get
```## 开发
```sh
go run main.go
```## 编译
```sh
# 禁用交叉编译,将全部的依赖打包进产物
# set CGO_ENABLED=0 # Windows
# export CGO_ENABLED=0 # Linux
go build main.go
```## 运行
```sh
./main.exe # Windows
# 或
./main #Linux
```## 测试
```sh
go test
```## 作者
👤 **CaoMeiYouRen**
* Website: [https://blog.cmyr.ltd/](https://blog.cmyr.ltd/)
* GitHub: [@CaoMeiYouRen](https://github.com/CaoMeiYouRen)