Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareTime ¶ added in v0.3.1
Types ¶
type Comparable ¶
Comparable method CompareTo(Comparable) should return a negative number when v1 < v2, a positive number when v1 > v2 and zero when v1 == v2.
type Container ¶
type Container[T any] struct { Items []T // container data Desc bool // asc or desc, default asc. Compare Comparable[T] // cmp.Compare or custom comparison }
Click to show internal directories.
Click to hide internal directories.