Prashant Varanasi
0fe51c2f54
Fix typo in generated comment for UnmarshalText
...
Currently, the generated code starts with "// MarshalText" even though
the method is "UnmarshalText".
2018-04-09 18:09:18 -07:00
Alvaro Lopez Espinosa
70e5ffb726
Add link to cover badge
2018-03-09 18:12:22 +00:00
Alvaro Lopez Espinosa
64261f400f
Update godoc card
2018-03-09 18:10:12 +00:00
Alvaro Lopez Espinosa
a70439e187
Add godoc card
2018-03-09 18:09:16 +00:00
Alvaro Lopez Espinosa
865d4d5850
Updated docs
2018-03-09 18:05:29 +00:00
Alvaro Lopez Espinosa
a7e0f72c42
Add docs
2018-03-09 18:02:04 +00:00
Alvaro Lopez Espinosa
13c6b5bfe2
remove white line
2018-03-09 17:16:29 +00:00
Alvaro Lopez Espinosa
c5796a6202
Add go report card
2018-03-09 17:08:50 +00:00
Alvaro Lopez Espinosa
348e446ba6
Add License
2018-03-09 17:06:57 +00:00
Alvaro Lopez Espinosa
87dc173c7b
Fix some golint suggestions
2018-03-09 16:55:00 +00:00
Alvaro Lopez Espinosa
58936429ea
Add code coverage
2018-03-09 16:04:50 +00:00
Alvaro Lopez Espinosa
f6af706459
Correct some typos
2018-03-09 14:47:25 +00:00
Alvaro Lopez Espinosa
d213131f3e
Changed "BelongsTo" method by "IsA" and update Readme
2018-03-09 14:44:41 +00:00
Alvaro Lopez Espinosa
d6adb342e2
Optimized belongsToEnum method and updated tests
2018-03-09 12:33:11 +00:00
Álvaro
1dea5e9823
Create "values" and "belongsToEnum" methods
2018-03-09 11:32:26 +00:00
Álvaro
7aaf68cd58
Add missing comments
2018-03-08 20:17:07 +00:00
Álvaro López Espinosa
60ace443ec
Merge pull request #28 from MrGossett/MrGossett/comment-json-yaml
...
Comments for JSON and YAML marshaler methods
2018-03-08 20:12:28 +00:00
Álvaro
7b30369342
Updated Readme
2018-03-08 20:08:41 +00:00
Álvaro
81eff08fc7
Add a new "text" flag for TextMarshaler methods
2018-03-08 19:51:11 +00:00
Tim Gossett
f283678ee0
Comments for JSON and YAML marshaler methods
...
`go vet` will complain when an exported method is not properly
documented. This change adds comments to the generated `MarshalJSON`,
`UnmarshalJSON`, `MarshalYAML`, and `UnmarshalYAML` methods to satisfy
`go vet`.
As of go 1.10, the go test command now automatically runs go vet on the
package being tested. Complaints from `go vet` are treated like build
errors and prevent execution of the test. This means that generated code
that is not properly documented will prevent test execution.
[1]: https://golang.org/doc/go1.10#test-vet
2018-02-19 22:20:31 -05:00
Alvaro Lopez Espinosa
f3fec002f1
Change the name of the generated file
2018-02-06 12:17:13 +00:00
Álvaro López Espinosa
644919b7e9
Merge pull request #15 from wttw/master
...
add -trimprefix and -autotrimprefix
2018-02-06 12:04:43 +00:00
Steve Atkins
bd9938fa86
Remove autotrimprefix option; add basic tests for -trimprefix.
2018-02-05 16:48:43 -08:00
Steve Atkins
e1f9d08449
Add expected comments.
2018-02-05 16:09:28 -08:00
Steve Atkins
276f4081b1
Merge branch 'master' of git://github.com/alvaroloes/enumer
2018-02-05 15:45:41 -08:00
Álvaro López Espinosa
3ee8f07883
Merge pull request #25 from wlbr/master
...
Making the generated code golint "friendly".
2018-02-05 11:42:07 +00:00
Álvaro López Espinosa
ebfd0d9bb3
Merge pull request #23 from carlsverre/master
...
support importing from source files if possible
2018-02-05 11:29:12 +00:00
Álvaro López Espinosa
7c891f48ad
Merge branch 'master' into master
2018-02-05 11:28:19 +00:00
Álvaro López Espinosa
056aba1393
Merge pull request #22 from GodsBoss/master
...
Fix typo.
2018-02-05 11:22:47 +00:00
Álvaro López Espinosa
c4e9df231f
Merge pull request #19 from pascaldekloe/master
...
Replace naming convention library. Eliminates transformer code.
2018-02-05 11:22:15 +00:00
Michael Wolber
5d97e5e788
Revert "Updated stringer.go to current version (2018/01)"
...
This reverts commit 95a15ae31e
.
2018-01-04 12:01:03 +01:00
Michael Wolber
95a15ae31e
Updated stringer.go to current version (2018/01)
2018-01-04 11:38:06 +01:00
Michael Wolber
aa50e29ee8
Added comment to generated ...String function. Removed usage of _ in identifiers.
2018-01-03 15:35:09 +01:00
Carl Sverre
e5b99fedb3
Maintain go 1.8 compat
2017-11-28 15:42:24 -08:00
Carl Sverre
7f992c627d
import from source
2017-11-28 15:31:38 -08:00
Timo Reitz
15e9093eb1
Fix typo.
2017-11-02 22:02:53 +01:00
Pascal S. de Kloe
f1508650a2
Replace naming convention library. Eliminates transformer code.
2017-08-06 00:58:54 +02:00
Steve Atkins
51d23ad531
add -trimprefix and -autotrimprefix
2017-04-10 11:37:23 -07:00
Álvaro López Espinosa
fbb114e61f
Update README.md
2017-02-09 11:02:18 +00:00
Álvaro López Espinosa
5b38bf6a65
Merge pull request #6 from THE108/transform
...
Enum value string representation transformation feature
2017-02-09 10:48:40 +00:00
achernov
a086331b38
Update readme
2017-02-01 11:49:25 +03:00
achernov
432dffaa95
Add enum value string representation transformation feature
2017-02-01 10:01:12 +03:00
Álvaro López Espinosa
a13305de81
Merge pull request #5 from jim-minter/master
...
add yaml support
2017-01-09 10:30:09 +00:00
Jim Minter
86cfc17470
add yaml support
2016-12-20 12:57:15 +00:00
Álvaro
68e3d4bbf5
Updated readme
2016-10-26 17:12:50 +01:00
Álvaro
04c93cadb4
Updated readme
2016-10-26 17:12:25 +01:00
Álvaro
d3da35e3d0
Fixes and adds tests after merge
2016-10-26 16:59:55 +01:00
Álvaro López Espinosa
ad5bc9c3e5
Merge pull request #3 from webguerilla/master
...
Scanner and Valuer interface
2016-10-26 16:45:19 +01:00
marco
af72d0db85
bug fix if string instead of []byte is returned from db (this is the
...
case for postgreSQL)
2016-10-21 15:20:44 +02:00
marco
af92007434
Merge remote-tracking branch 'upstream/master'
2016-10-20 13:42:25 +02:00