The code used in the playground was unfortunately not the proper one here is a link to the new code
https://play.golang.org/p/kbRsWxsQwE0 since current version of playground (as of 2018-09-03) is still 1.10.3 the playground does not show the issue I've logged an issue there to track the resolution https://github.com/golang/go/issues/27464 -- 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.