Documentation
¶
Index ¶
- func Abs(path string) (string, error)
- func Command(name string, args ...string) *exec.Cmd
- func CommandContext(ctx context.Context, name string, args ...string) *exec.Cmd
- func FileExists(path string) (bool, error)
- func Getwd() (string, error)
- func LookPath(file string) (string, error)
- func PathEnv() string
- func ResolveExistingFile(pathValue string) (string, error)
- func UserHomeDir() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandContext ¶ added in v0.15.2
CommandContext constructs an external process command bound to ctx.
func FileExists ¶
FileExists reports whether path exists and is a file.
func ResolveExistingFile ¶
ResolveExistingFile resolves pathValue to an absolute path and validates that it exists as a file.
func UserHomeDir ¶
UserHomeDir returns the current user's home directory.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.