You don't need maps for this: https://play.golang.org/p/ylIdX7P9Syy
Sorting is your friend.
--
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.
No, sorry, slices cannot be used as map keys.
Also note that equality is not dependent on methods
and not user changeable but solely determined by
the language spec.
If you can derive e.g. a string from the slice and use
that string as the map key you would be fine.
V.
On Tuesday, 22 May 2018 19