https://github.com/hyperq/hgen
https://github.com/hyperq/hgen
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hyperq/hgen
- Owner: hyperq
- License: mit
- Created: 2020-04-08T06:29:54.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-14T02:26:07.000Z (over 2 years ago)
- Last Synced: 2024-06-20T18:49:13.233Z (about 2 years ago)
- Language: Go
- Size: 51.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hgen
a tool for wood to generate go code with mysql data table
## Install
```bash
go get github.com/hyperq/hgen
```
## How to use
```bash
hgen -d dbname -t user
```
```bash
a tool for wood to generate go code with mysql data table
a tool for wood to generate go code with mysql data table
Usage:
hgen [flags]
Flags:
-e, --cache is cache
-c, --comment swagger comment
-d, --dbname string dbname
-h, --help help for hgen
-i, --ip string ip (default "127.0.0.1")
-p, --password string mysql password (default "123456ab")
--port int mysql port (default 3306)
-t, --tablename string table names,you yan use , join mult
-g, --tags string tags
-u, --username string mysql username (default "root")
```