Documentation ¶
There is no documentation for this package.
Directories ¶
Path | Synopsis |
---|---|
pkg
|
|
stringenumer
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. |
Click to show internal directories.
Click to hide internal directories.