util

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteCountIEC added in v0.0.8

func ByteCountIEC(b int64) string

func ByteCountSI added in v0.0.8

func ByteCountSI(b int64) string

func ConfigBaseDir

func ConfigBaseDir() string

func DeriveGameName

func DeriveGameName(inputPath, executablePath string, inputWasDir bool) string

func FindExe added in v0.0.14

func FindExe(path string) (string, error)

func FindFileAndRead added in v0.0.11

func FindFileAndRead(startDir, partialPath string) (absPath string, data []byte, err error)

func FirstNonEmpty

func FirstNonEmpty[T comparable](values ...T) T

func GetWinePrefix added in v0.0.14

func GetWinePrefix(programName, game string) (string, error)

func IsDir

func IsDir(path string) bool

func IsExeFile

func IsExeFile(path string) bool

func IsFile

func IsFile(path string) bool

func IsImageFile

func IsImageFile(path string) bool

func OptionErr added in v0.0.14

func OptionErr(i interface{}, err error) string

func SanitizeName

func SanitizeName(name string) string

func ScoreIconCandidate

func ScoreIconCandidate(searchRoot, path string) int

func ScoreImageCandidate

func ScoreImageCandidate(searchRoot, path string) int

func StringFromAny added in v0.0.14

func StringFromAny(v any) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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