enuminator

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2023 License: MIT Imports: 7 Imported by: 0

README

Enuminator

This is a tool that generates case insensitive enumerations. Only string enumerations are supported.

Usage

$ ./enuminator --help
Usage: enuminator <command>

Flags:
  -h, --help    Show context-sensitive help.

Commands:
  generate --name=STRING
    Generates enums for the specified type.

  version
    Prints the version of this tool.

Run "enuminator <command> --help" for more information on a command.
Go Generate

This tool is best suited for Go's generate functionality.

//go:generate enuminator --name Color
type Color string

const (
    ColorRed Color   = "red"
    ColorBlue Color  = "blue"
    ColorGreen Color = "green"
)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL