alvaroloes / enumer

A Go tool to auto generate methods for your enums
Other
478 stars 111 forks source link

Add ability to parse nil value as empty string #64

Open myrtleTree33 opened 2 years ago

myrtleTree33 commented 2 years ago

Given the following:

type ColorType int

const (
  RED ColorType = iota
  GREEN
  BLUE
  NIL
)

I would like to set the value of NIL to be an empty string. Is this possible?