Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dreamsxin/go-gen
Generate go files
https://github.com/dreamsxin/go-gen
Last synced: 26 days ago
JSON representation
Generate go files
- Host: GitHub
- URL: https://github.com/dreamsxin/go-gen
- Owner: dreamsxin
- License: apache-2.0
- Created: 2024-04-28T00:38:12.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-30T03:24:28.000Z (9 months ago)
- Last Synced: 2024-10-30T03:48:59.418Z (2 months ago)
- Language: Smarty
- Size: 39.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 安装使用
```shell
go install github.com/dreamsxin/go-gen@latest
mkdir test && cd test
go mod init hello
go-gen init
```### 生成 model
```shell
# 配置数据库 config.json
vi config.json
# 生成 user model
go-gen model -d hello -t user
```