gostruct

command module
v0.0.0-...-81835e6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2019 License: MIT Imports: 4 Imported by: 0

README

gostruct

Struct Generator from database

gostruct will generate struct from your DB

Build Status codecov License

Index

You can file an Issue.

Support

Currently only support Mysql for now.

Getting Started

Download
go get -u github.com/golangid/gostruct

Example

Creating Configurations

To generate the models, you need to create config.json in you project folders.

{
  "type":"mysql",
  "user":"root",
  "password":"password",
  "host":"127.0.0.1",
  "port":"33060",
  "dbname":"article"
}

then run from terminal

$GOPATH/bin/gostruct generate

# Example
~/go/bin/gostruct generate

Example to use Faker

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL