t-k / ar2gostruct

Generate Go (golang) Struct from activerecord models
https://rubygems.org/gems/ar2gostruct
MIT License
35 stars 4 forks source link

add a --package flag #2

Closed neophiliac closed 9 years ago

neophiliac commented 9 years ago

This writes a package name at the beginning of the output. Now I can take the output of ar2gostruct and import it into my go code without any manual steps (except maybe adding imports as required for types in the structs).

t-k commented 9 years ago

@neophiliac Thanks for your PR. I released new version 0.2.2.