Documentation
¶
Index ¶
- func Int32s(s []int32)deprecated
- func Int64s(s []int64)deprecated
- func Sort[T cmp.Ordered](s []T)
- func SortFunc[T any](s []T, less func(a, b T) int)
- type Int32Slicedeprecated
- type Int64Slicedeprecated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Int32Slice
deprecated
type Int32Slice []int32
Deprecated: 使用 Sort[int32] 替代
func (Int32Slice) Len ¶
func (p Int32Slice) Len() int
func (Int32Slice) Less ¶
func (p Int32Slice) Less(i, j int) bool
func (Int32Slice) Swap ¶
func (p Int32Slice) Swap(i, j int)
type Int64Slice
deprecated
type Int64Slice []int64
Deprecated: 使用 Sort[int64] 替代
func (Int64Slice) Len ¶
func (p Int64Slice) Len() int
func (Int64Slice) Less ¶
func (p Int64Slice) Less(i, j int) bool
func (Int64Slice) Swap ¶
func (p Int64Slice) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.