pkg/

directory
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MIT

Directories

Path Synopsis
Package stringenumer generate useful code for enums defined as strings type MyEnum string const ( MyEnumThis MyEnum = "this" MyEnumThat MyEnum = "that" ) The code that is generated by default is a Valid function: func (e MyEnum) Valid() bool It can also generate an TextUnmarshaling function for the type that validates any string that is unmarshaled into this type.
Package stringenumer generate useful code for enums defined as strings type MyEnum string const ( MyEnumThis MyEnum = "this" MyEnumThat MyEnum = "that" ) The code that is generated by default is a Valid function: func (e MyEnum) Valid() bool It can also generate an TextUnmarshaling function for the type that validates any string that is unmarshaled into this type.

Jump to

Keyboard shortcuts

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