utils

package
v0.0.0-...-f342b6d Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Average

func Average(s []int) float32

func CheckContains

func CheckContains[T comparable](t testing.TB, got []T, want T)

func CheckEquals

func CheckEquals[T comparable](t testing.TB, got, want T)

func CheckNotNil

func CheckNotNil[T comparable](t testing.TB, got T)

func CheckType

func CheckType[T any](t testing.TB, got T, want string)

func Contains

func Contains[T comparable](s []T, e T) bool

func Histogram

func Histogram(s []int, max int) []int

func MaxSlicei

func MaxSlicei(s []float64) int

func RemoveFromSlice

func RemoveFromSlice(s []int, i int) []int

Types

This section is empty.

Jump to

Keyboard shortcuts

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