utils

package
v0.0.0-...-fa2c683 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains[T comparable](data []T, elem T) bool

func Filter

func Filter[T any](data []T, f func(T) bool) []T

func GetBasePath

func GetBasePath() string

func GetStack

func GetStack(err *errors.Error, colors bool) string

func MapOver

func MapOver[T, U any](data []T, f func(T) U) []U

func Span

func Span(ctx context.Context, name string, f func(ctx context.Context) error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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