Commit Graph

19 Commits

Author SHA1 Message Date
Gilberto Morejon ddf54cfe70 Add CQL (cassandra, scylladb, etc) support 2020-02-27 14:01:13 -08:00
Dan Markham 9793e421ce
use constant names 2020-02-23 15:24:20 -08:00
Dan Markham cdbbf12521
Port fix from @ltpquang 2019-07-18 08:06:39 -07:00
Dan Markham 2a31c850ad
Make PillString case insensitive
fixes #21
2019-05-04 15:33:34 -07:00
Luca Osti 63cd80f057 Add method for getting a slice of strings 2019-03-22 12:56:38 +01:00
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 58936429ea Add code coverage 2018-03-09 16:04:50 +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 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
Michael Wolber aa50e29ee8
Added comment to generated ...String function. Removed usage of _ in identifiers. 2018-01-03 15:35:09 +01:00
Jim Minter 86cfc17470 add yaml support 2016-12-20 12:57:15 +00:00
Álvaro 06fa207af0 Added a new flag/feature to generate json marshaling methods 2016-01-19 19:39:33 +00:00
alvaroloes 54304668d7 Move code out of the inner for loop as it only depend on the outer one 2015-12-31 14:03:36 +00:00
alvaroloes 58c57e5d15 Added a method to the generated code to get the enum value from the string name. Fixed all tests. 2015-12-29 13:14:54 +00:00