Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```