Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 1010 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 1010 Bytes

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.