Skip to content

asaurav025/gorm_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gorm generator

Build Status Go Report Card
This golang generate gorm model based on yaml file input.

Steps to generate model

  • Write yaml file according to format specified in sample.yaml.
  • Multiple models can be defined in a single yaml file.
  • Import the package github.com/asaurav025/gorm_generator
  • Call Generate() function from your function, this function has two parameters modelpath: where to be model is to be generated, filepath: path/to/yamlfile

TODO

  • Add support to more filetype such as json and xml.
  • Look for better way to pass template to generate function, currently using utf-8 encoded format of template.

About

This package generate Gorm models using yaml file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages