Just a Go map -- like you're already using elsewhere in the code. It's the
same as a hash in Perl or a dict in Python -- you can't have duplicate keys.

So if you create a map that has the date as the key and anything as the
value (an empty struct is idiomatic, but you can also use a boolean), then
you will end up with a unique list of dates as map keys.

Example:

https://play.golang.org/p/jg5SmfxpzJ

-- 
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.

Reply via email to