|
|
|
|
|
by reactordev
844 days ago
|
|
“Anywhere that accepts an Operation Enum type will just as happily accept an int.” Hey! Just like in C! I digress, I think the issue is that the author comes from another language where enums are a thing. In go, they aren’t. Enums should be types. Types that don’t infer to an int. Use an interface. Be happy. |
|