go-enum
go-enum copied to clipboard
An enum generator for go
Two questions about empty strings: 1. Enumeration values currently do not support empty strings? (because there is a valid empty string case) 2. The mysql type is varchar, default: ""....
I'm using go-enum v0.5.0 Linux x86_64 I've created an enum as such: ```go //go:generate go-enum -f=$GOFILE --marshal --names --nocamel --prefix TokenTypeEnum_ package tokens /* ENUM( AD_HOC_USER = 1 APP_USER OTHER...
The main reason behind this PR is I often have my enums defined as upper snake case like this: `MY_ENUM`. This means when I run the generator the constant generated...
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.4 to 1.9.0. Release notes Sourced from github.com/stretchr/testify's releases. v1.9.0 What's Changed Fix Go modules version by @SuperQ in stretchr/testify#1394 Document that require is not safe to...
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.16.1 to 0.18.0. Commits c5643e9 gopls/internal/server: fix two bugs related to dynamic configuration 50b4f1b gopls/internal/golang: close open file f0ef3c6 gopls: update x/telemetry dependency to fix crash 8cf0a8e...
Bumps [github.com/urfave/cli/v2](https://github.com/urfave/cli) from 2.26.0 to 2.27.1. Release notes Sourced from github.com/urfave/cli/v2's releases. v2.27.1 What's Changed v2: Add build tag urfave_cli_no_suggest by @dolmen in urfave/cli#1847 Full Changelog: https://github.com/urfave/cli/compare/v2.27.0...v2.27.1 v2.27.0 What's Changed...
Bumps [github.com/labstack/gommon](https://github.com/labstack/gommon) from 0.4.1 to 0.4.2. Release notes Sourced from github.com/labstack/gommon's releases. v0.4.2 update deps update deps #58 Commits 2888b9c update deps (#58) See full diff in compare view [![Dependabot...
Could you please provide an "official" multi-arch docker image to use this tool? It can be simply deployed to the ghcr.io, for example. Use case - a more simple installation...
I have the following code: ```go // ENUM(v1 = 1) type Version int ``` The full name of the version is actually `x/v1`, which if used directly is kind of...
Wont work always, some linux distros are having aarch64 isntead of arm64 for the uname -m curl -fsSL "https://github.com/abice/go-enum/releases/download/$(GO_ENUM_VERSION)/go-enum_$(uname -s)_$(uname -m)" -o go-enum