README.md in ar2gostruct-0.0.2 vs README.md in ar2gostruct-0.0.3
- old
+ new
@@ -1,6 +1,7 @@
# Ar2gostruct
+[![Gem Version](https://badge.fury.io/rb/ar2gostruct.png)](https://rubygems.org/gems/ar2gostruct)
Automatically generate Golang Struct from your activerecord models.
Installation
---
@@ -21,10 +22,12 @@
---
On your rails directory.
```bash
bundle exec rake ar2gostruct
+# or
+ar2gostruct
```
this will returns
```bash
// app/models/users.rb
// Table name: users
@@ -47,9 +50,11 @@
If you're using [qbs](https://github.com/coocood/qbs#), Additional options are available.
```bash
bundle exec rake ar2gostruct orm=qbs
+# or
+ar2gostruct -o qbs
// app/models/users.rb
// Table name: users
type Users struct {
Id int32 'json:"id" qbs:"pk,notnull"'