alvaroloes / enumer

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

Add ability to parse nil value as empty string #64

Open myrtleTree33 opened 3 years ago

myrtleTree33 commented 3 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?