Looks fine to me. You'll have to iterate anyway. You can save a little perf by allocating directly the right size for your temp slice, with make. Then use indexing instead of append.
-- 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.