Skip to content

Generate a slice of "valid" values for an enum #1721

Description

@jamietanna

As a common pattern seen across codebases

Note that we need to make sure the slice is new each time, to make sure it can be modified by a caller.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions