Golang排序

1、基础类型排序

官方package: sort, 提供了对int,float,string的排序

  • sort.Ints
  • sort.Floats
  • sort.Strings