utils

package
v0.4.36 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllElementsEqual added in v0.4.24

func AllElementsEqual[T comparable](slice []T, value T) bool

func AnyElementEqual added in v0.4.24

func AnyElementEqual[T comparable](slice []T, value T) bool

func DedupeSlice added in v0.4.24

func DedupeSlice[T comparable](input []T) []T

func FilterSlice

func FilterSlice[T any](slice []T, filterFn func(T) bool) []T

func GetBearerTokenFromHeader

func GetBearerTokenFromHeader(
	header http.Header,
	key string,
) (string, error)

func MapSlice

func MapSlice[T any, V any](slice []T, fn func(T) V) []V

func NoElementEqual added in v0.4.24

func NoElementEqual[T comparable](slice []T, value T) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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