helper

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterExtensions added in v0.15.0

func FilterExtensions(files []os.DirEntry, extensions string, includeDirs bool) []os.DirEntry

FilterExtensions filters a given slice of FileInfo based on the passed extensions extensions can be a string containing multiple extensions; strings.Contains is used for comparison

func Home

func Home() string

Home returns the users home directory

func IsFileNameValid

func IsFileNameValid(fp string) bool

IsFileNameValid tests if the given file name can be used

func Openbrowser added in v0.15.0

func Openbrowser(url string)

OpenBrowser tries to open the users default browser with given url

Types

This section is empty.

Jump to

Keyboard shortcuts

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