utils

package
v0.0.0-...-4158bf4 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllIsType

func AllIsType[T any, I any](input ...I) bool

func IsType

func IsType[T any](t any) bool

func RemoveType

func RemoveType[T any, I any](input []I) []I

func SliceEveryBy

func SliceEveryBy[T any](collection []T, predicate func(item T) bool) bool

func SliceToMap

func SliceToMap[T any, K comparable, V any](collection []T, transform func(item T) (K, V)) map[K]V

func SliceTransform

func SliceTransform[T any, R any](collection []T, iteratee func(item T, index int) R) []R

func TrimmedFilenameFromPath

func TrimmedFilenameFromPath(p string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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