For example, I have an enum like:
type Status int
const (
Normal Status = itoa
Blocked
)
Status"Normal" and "Blocked"Statusreflect
I do not want to use mapping to solve it. Because this function is used in a library. it is kind of stateless.
Is there any other ways?
Thanks