https://github.com/forecho/go-rest-api
https://github.com/forecho/go-rest-api
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/forecho/go-rest-api
- Owner: forecho
- Created: 2021-10-14T03:57:18.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-11-03T10:36:39.000Z (over 4 years ago)
- Last Synced: 2025-02-16T16:55:46.273Z (over 1 year ago)
- Language: Go
- Size: 108 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-rest-api
## DB
### 生成新的 ent Schema
User 示例
```shell
go run entgo.io/ent/cmd/ent init User
```
### 更新 ent 代码
```shell
go generate ./ent
```
## API 文档
### 初始化或者更新文档
```shell
swag init -g cmd/server/main.go
```
## 参考
- [ribice/gorsk](https://github.com/ribice/gorsk)
- [nixsolutions/golang-echo-boilerplate](https://github.com/nixsolutions/golang-echo-boilerplate)