compat

package module
v0.0.0-...-ab28361 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearMap

func ClearMap[T ~map[K]V, K comparable, V any](t T)

func ClearNumericSlice

func ClearNumericSlice[T ~[]E, E numeric](t T)

ClearNumericSlice is like ClearSlice, but only receives slices of numeric types. This is expected to have better performance when compiled with legacy Go versions, with optimized compatible code.

func ClearSlice

func ClearSlice[T ~[]E, E any](t T)

func Max

func Max[T cmp.Ordered](x T, y ...T) T

func Min

func Min[T cmp.Ordered](x T, y ...T) T

Types

This section is empty.

Directories

Path Synopsis
cryptocompat

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL