Re: [go-nuts] Add string Parser to x/tools/stringer

2020-06-08 Thread Ian Lance Taylor
On Sun, Jun 7, 2020 at 12:04 PM Diego Augusto Molina wrote: > > Very often I use the stringer command to generate lists of enumerated values, > which is great btw. > But one thing that I see myself also writing after this is a Parse method or > function to validate strings that are received. > T

[go-nuts] Add string Parser to x/tools/stringer

2020-06-07 Thread Diego Augusto Molina
Very often I use the stringer command to generate lists of enumerated values, which is great btw. But one thing that I see myself also writing after this is a Parse method or function to validate strings that are received. The use case is that I have a list of possible values for a controlled fi