util

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "1.4.1"

Variables

View Source
var (
	ConfigPath string
)

Functions

func AddToPath

func AddToPath(pathToAdd string)

func BinName

func BinName() string

func Download

func Download(url string, dest string) error

func Find

func Find(name string, in string) (string, error)

Find finds a file in a directory

func GetGlobalConfigPath

func GetGlobalConfigPath() (string, error)

func GetPackagePath

func GetPackagePath() string

func RestorePath

func RestorePath()

func System

func System(cmd string) *exec.Cmd

func TermWidth

func TermWidth() int

func Unzip

func Unzip(filepath string) error

Unzip unzips an archive at its location

func Update added in v1.4.0

func Update()

Types

This section is empty.

Jump to

Keyboard shortcuts

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