abice
Repos
13
Followers
12
Following
4

An enum generator for go

408
41

Code Generated Validation for Go

21
2

Service registry bridge for Docker with pluggable adapters

0
0

Events

Created at 1 week ago
started
Created at 1 week ago
create tag
abice create tag v0.5.3
Created at 2 weeks ago

Fix deprecated function use, ignored return (#139)

  • Fix deprecated

  • fix strings.Title deprecation

Created at 2 weeks ago
pull request closed
Fix deprecated function use, ignored return

Hi, I saw some warnings in my IDE while browsing the code, and I thought why not submit some fix for it.

One thing I didn't fix because it broke some of the tests was strings.Title.

These are the tests which failed. IMO, the cases.Title is probably more correct than the strings.Title. I tested with the recommended cases.Title(language.Und, cases.NoLower).String().

    generator_test.go:61: snapshot not equal:
        --- Previous
        +++ Current
        @@ -1739,8 +1739,8 @@
           (string) (len=22) "\tSanitizingHyphenStart",
        -  (string) (len=72) "\t// Sanitizing_underscoreFirst is a Sanitizing of type _underscoreFirst.",
        -  (string) (len=27) "\tSanitizing_underscoreFirst",
        -  (string) (len=64) "\t// Sanitizing0numberFirst is a Sanitizing of type 0numberFirst.",
        -  (string) (len=23) "\tSanitizing0numberFirst",
        -  (string) (len=60) "\t// Sanitizing123456789a is a Sanitizing of type 123456789a.",
        -  (string) (len=21) "\tSanitizing123456789a",
        +  (string) (len=72) "\t// Sanitizing_UnderscoreFirst is a Sanitizing of type _UnderscoreFirst.",
        +  (string) (len=27) "\tSanitizing_UnderscoreFirst",
        +  (string) (len=64) "\t// Sanitizing0NumberFirst is a Sanitizing of type 0NumberFirst.",
        +  (string) (len=23) "\tSanitizing0NumberFirst",
        +  (string) (len=60) "\t// Sanitizing123456789A is a Sanitizing of type 123456789A.",
        +  (string) (len=21) "\tSanitizing123456789A",
           (string) (len=61) "\t// Sanitizing123123Asdf is a Sanitizing of type 123123-Asdf.",
        @@ -1773,5 +1773,5 @@
           (string) (len=52) "\tSanitizingHyphenStart:      _SanitizingName[11:23],",
        -  (string) (len=52) "\tSanitizing_underscoreFirst: _SanitizingName[23:39],",
        -  (string) (len=52) "\tSanitizing0numberFirst:     _SanitizingName[39:51],",
        -  (string) (len=52) "\tSanitizing123456789a:       _SanitizingName[51:61],",
        +  (string) (len=52) "\tSanitizing_UnderscoreFirst: _SanitizingName[23:39],",
        +  (string) (len=52) "\tSanitizing0NumberFirst:     _SanitizingName[39:51],",
        +  (string) (len=52) "\tSanitizing123456789A:       _SanitizingName[51:61],",
           (string) (len=52) "\tSanitizing123123Asdf:       _SanitizingName[61:72],",
        @@ -1793,8 +1793,8 @@
           (string) (len=64) "\tstrings.ToLower(_SanitizingName[11:23]): SanitizingHyphenStart,",
        -  (string) (len=69) "\t_SanitizingName[23:39]:                  Sanitizing_underscoreFirst,",
        -  (string) (len=69) "\tstrings.ToLower(_SanitizingName[23:39]): Sanitizing_underscoreFirst,",
        -  (string) (len=65) "\t_SanitizingName[39:51]:                  Sanitizing0numberFirst,",
        -  (string) (len=65) "\tstrings.ToLower(_SanitizingName[39:51]): Sanitizing0numberFirst,",
        -  (string) (len=63) "\t_SanitizingName[51:61]:                  Sanitizing123456789a,",
        -  (string) (len=63) "\tstrings.ToLower(_SanitizingName[51:61]): Sanitizing123456789a,",
        +  (string) (len=69) "\t_SanitizingName[23:39]:                  Sanitizing_UnderscoreFirst,",
        +  (string) (len=69) "\tstrings.ToLower(_SanitizingName[23:39]): Sanitizing_UnderscoreFirst,",
        +  (string) (len=65) "\t_SanitizingName[39:51]:                  Sanitizing0NumberFirst,",
        +  (string) (len=65) "\tstrings.ToLower(_SanitizingName[39:51]): Sanitizing0NumberFirst,",
        +  (string) (len=63) "\t_SanitizingName[51:61]:                  Sanitizing123456789A,",
        +  (string) (len=63) "\tstrings.ToLower(_SanitizingName[51:61]): Sanitizing123456789A,",
           (string) (len=63) "\t_SanitizingName[61:72]:                  Sanitizing123123Asdf,",
Created at 2 weeks ago
issue comment
Fix deprecated function use, ignored return

The build error suggests that some dependencies for older versions are changing the go.mod.

I usually fix that by running make ci which would modify the go.mod according to each version of go. (the older ones are the ones with problems)

Created at 2 weeks ago

Use GOFILE env var (#141)

  • Add GOFILE as env var

  • remove file flags

Created at 2 weeks ago
pull request closed
Use GOFILE env var

Adds GOFILE env var to the CLI config so that the file flag not required when using //go:generate.

Created at 2 weeks ago
started
Created at 3 weeks ago
started
Created at 3 weeks ago
create tag
abice create tag v0.5.2
Created at 4 weeks ago
delete branch
abice delete branch abice/modUpdates
Created at 4 weeks ago

update dependencies (#149)

Created at 4 weeks ago
pull request closed
update dependencies
Created at 4 weeks ago
pull request opened
update dependencies
Created at 4 weeks ago
create branch
abice create branch abice/modUpdates
Created at 4 weeks ago
delete branch
abice delete branch abice/sqlintstr
Created at 4 weeks ago

add sqlint support for string type enums (#135)

Created at 4 weeks ago
pull request closed
add sqlint support for string type enums

Add support for Integer stored enums, with string typed enums in code.

Created at 4 weeks ago
create branch
abice create branch abice/snakeCase
Created at 4 weeks ago
issue comment
add sqlint support for string type enums

Hey, thanks for taking interest in the changes!

I need to go back and double check everything to make sure I didn't miss something.

So it's pretty much whenever I get some personal time sadly 😔. Hope to do that soon though

Created at 4 weeks ago
Created at 1 month ago
Created at 1 month ago