I'm writing Go application using Go 1.7rc3.
I have a slice of uint64 (var dirRange []uint64
) that I want to sort.
the sort package has a function sort.Ints()
but it requires []int
and I have []uint64
.
what do I do? can I type cast the all slice ?
thanks