Commit Graph

107 Commits

Author SHA1 Message Date
Dan Markham f8e96284fe
Merging in serjlee 2019-04-04 17:11:33 -07:00
Dan Markham 586f4733ff
adding in sum 2019-04-04 17:09:21 -07:00
Dan Markham d82b2b06c1
Merge pull request #4 from dmarkham/comments-tmpfile
Comments tmpfile
2019-04-04 16:36:31 -07:00
Dan Markham 1c1330394d
fix merge conflicts 2019-04-04 16:33:59 -07:00
Dan Markham ad406c3e36
Merge pull request #3 from dmarkham/go-modules
Go modules
2019-04-04 16:24:30 -07:00
Dan Markham ecea0f4d48
Remove vendor directory 2019-04-04 16:21:39 -07:00
amanbolat b0dd5b45a5
update to work with go modules 2019-04-04 15:57:51 -07:00
amanbolat bbb4825a38
added usage 2019-04-04 15:57:38 -07:00
amanbolat c7302601d6
remove importers 2019-04-04 15:57:37 -07:00
Dan Markham 2c68820d0e
Merge pull request #2 from dmarkham/fix-non-windows
Fix non windows
2019-04-04 15:47:42 -07:00
Dan Markham fd4c1a3913
Merge remote-tracking branch 'origin/master' into fix-non-windows 2019-04-04 15:44:34 -07:00
Dan Markham da2df55c39
Merge pull request #1 from dmarkham/travis
Adding in travis
2019-04-04 15:42:06 -07:00
Dan Markham 8d88862e90
Addwing in travis 2019-04-04 15:38:58 -07:00
Luca Osti 63cd80f057 Add method for getting a slice of strings 2019-03-22 12:56:38 +01:00
Luca Osti 188f5ebedc Add title-lower transform 2019-03-22 11:37:02 +01:00
Luca Osti d806ebd41f Add test 2019-03-22 11:36:20 +01:00
Luca Osti 5511caae23 Add prefix after transform 2019-03-22 11:36:16 +01:00
Luca Osti ea11b04142 Add withprefix flag 2019-03-22 10:54:07 +01:00
G.J.R. Timmer 42bd8ecbf7 Merge branch 'add-transformations' into 'master'
Add Transformers

See merge request go/enumer!2
2019-01-17 13:13:07 +01:00
G.J.R. Timmer 06f7d9e03c Merge branch 'fix-non-windows' into 'master'
Fix End2End test for non-windows platforms

See merge request go/enumer!1
2019-01-17 13:12:47 +01:00
Gert-Jan Timmer 78452a952a Add Transformers
- snake-upper
- kebab-upper
- lower (Lowercase)
- upper (Uppercase)
- title (TitleCase)
- first (Use first character of string)
- first-lower (same as first only lower case)
- first-upper (same as first only upper case)
2019-01-17 13:07:52 +01:00
Gert-Jan Timmer 16ae335f48 Fix End2End test for non-windows platforms
Binary name for string was hardcoded to `.exe`
2019-01-16 18:06:03 +01: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