Documentation ¶
Index ¶
- func CanConvert[T any](v any) bool
- func Compare[T constraints.Ordered](t1, t2 T) int
- func CompareAny(v1, v2 any) int
- func Convert[T any](v any) T
- func Filter[T any](ts []T, fs []srv.Filter) []T
- func Query[T any](ts []T, meta srv.Meta) []T
- func Sort[T any](ts []T, scs srv.SortComponents)
- func TypeOf[T any]() reflect.Type
- func ZeroOf[T any]() T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compare ¶
func Compare[T constraints.Ordered](t1, t2 T) int
func CompareAny ¶
Compare compares to any-values and returns: strings.Compare of type-kind-names, if types of v1 and v2 are not equal 0: if values are equal; -1: if v1 < v2; 1: if v1 > v2
func Sort ¶
func Sort[T any](ts []T, scs srv.SortComponents)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.