This golang generate gorm model based on yaml file input.
- 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 parametersmodelpath
: where to be model is to be generated,filepath
: path/to/yamlfile
- Add support to more filetype such as
json
andxml
. - Look for better way to pass template to generate function, currently using utf-8 encoded format of template.