util

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter[T any](items []T, filter func(item T) bool) []T

Filter returns only those elements, that are matched by given filter func.

func WithUserHomeDir

func WithUserHomeDir(path string) string

WithUserHomeDir returns path where `~` is replaced with user HOME dir.

Types

This section is empty.

Jump to

Keyboard shortcuts

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