utils

package
v0.0.0-...-b30bd0e Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter[T any](slice []T, filter func(*T) bool) []*T

func FindOne

func FindOne[T any](slice []T, filter func(*T) bool) (element *T)

func FormatPath

func FormatPath(path string, parentPath string) string

func GetDocumentsPath

func GetDocumentsPath() (string, error)

func HandleError

func HandleError(err error)

func IsDir

func IsDir(path string) bool

func IsFile

func IsFile(path string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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