James has it right. Try this: https://play.golang.org/p/VQPBwnh4Jn
On 27 November 2017 at 10:13, Henrik Johansson <dahankz...@gmail.com> wrote: > Hi, > > https://play.golang.org/p/bLiYSsKL_7 > > I have perhaps missed something simple or misunderstood the contract for > MarshalText/UnmarshalText but it seems to me that it should work it just > doesn't... :) > > If I uncomment the return of the parse error "BOOM" then I just get a new > "default" key with 3 underscores. > > Anyone knows what I missed? > > Thx, > Henrik > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.