README ¶ go 快速排序的泛型代码实现 支持类型:int | int8 | int16 | int32 | int64 | float32 | float64 | string 其他类型或结构体请使用标准库的 Sort(data Interface) 或者 Slice(x any, less func(i, j int) bool) 实现。 Expand ▾ Collapse ▴ Documentation ¶ Overview ¶ Author: Fu huizhong<fuhuizn@163.com> Index ¶ func IsSorted[T Compareable](s []T) bool func Sort[T Compareable](s []T) type Compareable Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func IsSorted ¶ func IsSorted[T Compareable](s []T) bool func Sort ¶ func Sort[T Compareable](s []T) Types ¶ type Compareable ¶ type Compareable interface { int | int8 | int16 | int32 | int64 | float32 | float64 | string } Source Files ¶ View all Source files gsort.go Click to show internal directories. Click to hide internal directories.