On 31 January 2018 at 16:23, roger peppe <rogpe...@gmail.com> wrote: > BTW you can already do something like this: > https://play.golang.org/p/q4bz8-AckN3
Neat trick! > You can even do it without reflect, which I'll leave as an exercise for > the reader :) I'll bite, does it involve struct { len int; content [maxCount]int }, or did you have something else in mind? -- 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.