enumer icon indicating copy to clipboard operation
enumer copied to clipboard

A Go tool to auto generate methods for your enums

Results 43 enumer issues
Sort by recently updated
recently updated
newest added

port of https://github.com/dmarkham/enumer/pull/82 this pull request will adds an optional method `Validate() error` -- and this is a very common interface -- that return an error if the `IsA() bool`...

Right now `enumer` requires explicitly listing out the enum types. This can get tedious and error-prone over time. One solution (e.g. as implemented by [enumgen](https://pkg.go.dev/cogentcore.org/core/enums#section-readme)) relies on line comments. Instead...

Currently the [pkg.go.dev page](https://pkg.go.dev/github.com/dmarkham/enumer) is just a copy of the README. It could better serve users of the library if it listed all the Exported vars, consts, methods. Apparently (I...