util

package
v0.0.0-...-a697553 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter(a []string) []string

func GetKeys

func GetKeys[T comparable, V any](m map[T]V) []T

func GetSortedKeys

func GetSortedKeys[T Inty, V any](m map[T]V) []T

func GetValues

func GetValues[T comparable, V any](m map[T]V) []V

func In

func In[T comparable](needle T, haystack []T) bool

func Max

func Max[T Inty](a, b T) T

func Min

func Min[T Inty](a, b T) T

func SplitAndFilter

func SplitAndFilter(s string, sep string) []string

Types

type Inty

type Inty interface {
	int | int8 | int16 | int32 | int64
}

Jump to

Keyboard shortcuts

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