Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fifsky/genstruct
Golang struct generator similar to mysql terminal
https://github.com/fifsky/genstruct
golang mysql struct
Last synced: 4 days ago
JSON representation
Golang struct generator similar to mysql terminal
- Host: GitHub
- URL: https://github.com/fifsky/genstruct
- Owner: fifsky
- License: mit
- Created: 2018-06-21T14:28:13.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-01-04T10:25:58.000Z (almost 4 years ago)
- Last Synced: 2024-06-20T19:16:01.110Z (5 months ago)
- Topics: golang, mysql, struct
- Language: Go
- Homepage: https://go.fifsky.com/
- Size: 3.5 MB
- Stars: 18
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# genstruct
![build](https://github.com/fifsky/genstruct/workflows/build/badge.svg)Golang struct generator from mysql schema
[![asciicast](https://asciinema.org/a/12i6QmbaUCQgPZ4o2rz5QmPVE.png)](https://asciinema.org/a/12i6QmbaUCQgPZ4o2rz5QmPVE)
## Install
```
go install github.com/fifsky/genstruct
```## Usage
```
genstruct -h localhost -u root -p 3306 -P 123456
```* `-h` default `localhost`
* `-u` default `root`
* `-p` default `3306`## online
https://go.fifsky.com/
## gosql
The structure can be applied to a [gosql](https://github.com/ilibs/gosql) package
## License
The source code is available under the MIT [License](/LICENSE).