util

package
v0.0.0-...-501d777 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IsSystemd = sync.OnceValue(isSystemdUsed)

Functions

func BlockEmptyString

func BlockEmptyString(field string) func(val string) error

func DebugLog

func DebugLog(format string, args ...interface{})

func ExecuteCommand

func ExecuteCommand(command string, logToDebug bool) error

func FileExists

func FileExists(value string) bool

func ForceKill

func ForceKill(pid int) error

ForceKill sends a SIGKILL signal to the process and its children

func GetShellArgs

func GetShellArgs() []string

func HomeDirPath

func HomeDirPath() (string, error)

GetRunAppDir returns the path to the runapp directory in the user's home directory

func IsDebug

func IsDebug() bool

func PidExists

func PidExists(pid int) bool

func ResolvePath

func ResolvePath(path string) (string, error)

ResolvePath resolves a path, expanding the home directory if it starts with "~"

func SoftKill

func SoftKill(pid int) error

SoftKill sends a SIGTERM signal to the process and its children

Types

This section is empty.

Jump to

Keyboard shortcuts

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