util

package
v0.0.0-...-28ebe53 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisplayNameToFilename

func DisplayNameToFilename(displayName string) string

DisplayNameToFilename converts a display name into a filename

func Explore

func Explore(ctx context.Context, path string) error

Explore opens the file explorer at the specified path

func FilenameToDisplayName

func FilenameToDisplayName(filename string) string

FilenameToDisplayName converts a filename into a more human readable display name

func GetModTime

func GetModTime(path string) (time.Time, error)

func StartHeartbeat

func StartHeartbeat(ctx context.Context, interval time.Duration, heartbeatFunc HeartbeatFuncType)

startHeartbeat starts a heartbeat goroutine that will execute the provided heartbeat function at each interval

func StringToUUID

func StringToUUID(seed string) (uuid.UUID, error)

func TouchFile

func TouchFile(filename string) error

TouchFile updates the timestamps of an existing file. It returns an error if the file does not exist.

Types

type HeartbeatFuncType

type HeartbeatFuncType func()

Jump to

Keyboard shortcuts

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