Commit Graph

99 Commits

Author SHA1 Message Date
Quang Le 275c2734c9 Fix error when number of runs reaches the run threshold 2019-07-18 10:39:11 +07:00
Quang Le 814e4e4ad4 Add test cases that make the endtoend test failed 2019-07-18 10:37:23 +07:00
Quang Le 89dcacfe6f Fix typos 2019-07-18 09:53:12 +07:00
Álvaro cbdc8d0944 Minimal changes in Readme 2019-05-25 17:21:47 +01:00
Álvaro 642f2c0436 Add support for -linecomment 2019-05-25 17:02:36 +01:00
Álvaro 0f1dc27ec9 Add support for go modules 2019-05-25 16:05:55 +01:00
Álvaro 7820f3770a Remove specific version importers and use the default one 2019-05-25 14:58:46 +01:00
Álvaro c0f685c6bf Merge remote-tracking branch 'origin/master' 2019-05-25 14:30:39 +01:00
Álvaro b6edbe712f Use go modules 2019-05-25 14:30:28 +01:00
Álvaro López Espinosa ddc705194a
Merge pull request #47 from osctobe/master
Create tempfile in the output directory
2019-05-25 14:29:03 +01:00
Michał Mirosław 0ef6de982e Create tempfile in the output directory 2019-05-23 14:01:08 +02:00
Álvaro López Espinosa 0fa5a42e5f
Merge pull request #45 from sekky0905/add-how-to-install-to-readme
Add Install section to README
2019-05-20 17:25:57 +01:00
Álvaro López Espinosa 9875c3a8c3
Merge pull request #33 from dterei/master
Add comment support + temporary file before writing
2019-05-20 16:53:50 +01:00
sekky0905 5d94885c07 Add Install section to README 2019-05-20 12:48:56 +09:00
David Terei 2615c451ce Write to tempfile first then rename 2018-08-08 16:27:25 -07:00
David Terei a4db2f8dd0 Support including chosen comments in generated code 2018-08-08 16:16:25 -07:00
David Terei 30e0eba7d0 Use enumer not stringer in usage output 2018-08-08 15:58:26 -07:00
Álvaro López Espinosa 6bcfe2edaa
Merge pull request #32 from boromisp/patch-1
Use the standard generated file marker
2018-06-11 10:17:43 +01:00
Peter Boromissza d45c729264
Use the standard generated file marker
This change is required for go lint compatibility.

See:
https://golang.org/s/generatedcode
https://github.com/golang/go/issues/13560#issuecomment-288457920
2018-06-10 16:30:56 +02:00
Álvaro López Espinosa a68056ee97
Merge pull request #30 from techmexdev/patch-1
Update README.md
2018-04-12 10:12:48 +01:00
Rodolfo Rodriguez 5188ada83d
Update README.md
fix minor typo
2018-04-11 17:50:53 -05:00
Álvaro López Espinosa 6c940ce86e
Merge pull request #29 from prashantv/unmarshal_comment
Fix typo in generated comment for UnmarshalText
2018-04-10 14:03:10 +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 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