Skip to content

selesy/go-enumeration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-enumeration

This project provides a code generator that will allow the easy creation of Java-style enumerations.

Installing

The following command will install the go-enumeration executable:

go get -u github.com/selesy/go-enumeration

The executable name is go-enumeration and it can be found in the $GOPATH/bin directory. You should make sure that this directory is on your shell's path.

Usage

The go-enumeration code generator uses a private data table annotated with directives to determine how the table's structure should be converted into a (effectively) constant enumeration with cargo data. Instructions detailing the required format of the code are provided by extensive go docs which can be viewed using the following command:

go docs $GOPATH/src/github.com/selesy/go-enumeration/pkg

Certain facets of the code generation process should be handled by the build pipeline and are therefore documented using the go-enumeration command's help system. Execute the following command to view the executable's help:

go-enumeration -help

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages