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

@dmarkham I had a previous PR with this same issue that got closed but it is still broken for go 18.2, not sure about other versions but the latest version...

@dmarkham I just noticed that the apple silicon support was not published in the release bundle! I think it is the travis definition that is not picking up the file....

First of all, @dmarkham, thank you for the wonderful library. We are happily use it in our go project. I will go straight to the case. When the receiver does...

In my project, I wrote a test to fully cover enumer-generated code. I would be happy/willing to take that test and add a flag to enumer so that enumer will...

enhancement

The directory passed to enumer may not be writable (e.g., when Bazel actions calls enumer). This PR makes it write to the OS default temp dir instead

# Changes - Add a new `validate` flag - When the `validate` flag is true, generate a `Validate() error` method that verifies the enum is set to a proper value...

we can optimize IsAXXX method to use switch statement instead of for loop. with this, we dont need `stringBelongsMethodSet`

all of the other transforms work with an empty string, but because `title-lower` tries to access rune at position `0` it throws an error ```go //go:generate go run github.com/dmarkham/enumer -type=Pill...

This PR aims to add support for generating XML and XML attribute marshaler and unmarshaler methods by adding two separate flags. `xml` and `xmlattr` to the generator option list. I...

This can be prevented by adding a `tools.go` file: ``` //go:build tools package tools import ( // Protect this entry in go.mod from being removed by go mod tidy. _...

enhancement