util

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClinkIsInstalled

func ClinkIsInstalled() bool

ClinkIsInstalled checks if Clink is installed on Windows

func CopyFile

func CopyFile(src, dst string) error

CopyFile copies a file from src to dst

func CreateSymlink(target, linkPath string) error

CreateSymlink creates a symbolic link

func EnsureDir

func EnsureDir(path string) error

EnsureDir creates a directory if it doesn't exist

func FileExists

func FileExists(path string) (bool, error)

FileExists checks if a file exists and is not a directory

func FindExecutable

func FindExecutable(name string, paths []string) (string, error)

FindExecutable looks for an executable file in the given directories

func FmtEnvPath

func FmtEnvPath(envPath string) string

FmtEnvPath formats an environment path for use in the current shell

func JoinPaths

func JoinPaths(paths []string) string

JoinPaths joins multiple path entries into a single PATH string

func NormalizePath

func NormalizePath(path string) string

NormalizePath normalizes a path by expanding home directory and cleaning it

func SplitPath

func SplitPath(envPath string) []string

SplitPath splits a PATH string into individual paths

func ToExecutableName

func ToExecutableName(name string) string

ToExecutableName converts a tool name to the executable name depending on OS

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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