在go语言中, 如果要对int、float等基本类型进行排序时,在sort包中提供了如下方法可以进行调用 // Ints sorts a slice of ints in increasing order. func Ints(a []int) { Sort(IntSlice(a)) } ​ //