I'm attempting to sort an array of Ints using the following function
func sortArray(array [100]int) [100]int {
var sortedArray = array
sort.Sort(sort.Ints(sortedArray))
return sortedArray
}
and getting the following error:
.\helloworld.go:22: cannot use sortedArray (type [100]int) as type []int in argument to sort.Ints .\helloworld.go:22: sort.Ints(sortedArray) used as value
I'm trying to figure out Go and I'm getting stuck on this one.