sort.Ints(x)
, sort.Float64s(x)
, and sort.Strings(x)
SCC-S1032The sort.Ints
, sort.Float64s
and sort.Strings
functions are shorthands and
are easier to read than sort.Sort(sort.IntSlice(x))
,
sort.Sort(sort.Float64Slice(x))
and sort.Sort(sort.StringSlice(x))
respectively.
sort.Sort(sort.StringSlice(x))
sort.Strings(x)