system

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs(path string) (string, error)

Abs resolves a path to an absolute path.

func Command

func Command(name string, args ...string) *exec.Cmd

Command constructs an external process command.

func FileExists

func FileExists(path string) (bool, error)

FileExists reports whether path exists and is a file.

func Getwd

func Getwd() (string, error)

Getwd returns the current working directory.

func LookPath

func LookPath(file string) (string, error)

LookPath resolves a command on PATH.

func PathEnv

func PathEnv() string

PathEnv returns the current PATH value.

func ResolveExistingFile

func ResolveExistingFile(pathValue string) (string, error)

ResolveExistingFile resolves pathValue to an absolute path and validates that it exists as a file.

func UserHomeDir

func UserHomeDir() (string, error)

UserHomeDir returns the current user's home directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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