utils

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearEmptyDirs added in v0.1.5

func ClearEmptyDirs(dPath string)

func CopyFileOnUnixSudo added in v0.0.2

func CopyFileOnUnixSudo(from, to string) error

func DNForAPTonLinux added in v0.0.2

func DNForAPTonLinux() string

func GetShellConfigFilePath

func GetShellConfigFilePath() string

func IsDir

func IsDir(path string) bool

func IsFile

func IsFile(path string) bool

func IsHyperVEnabledForWindows added in v0.1.4

func IsHyperVEnabledForWindows() bool

func MoveFileOnUnixSudo added in v0.0.4

func MoveFileOnUnixSudo(from, to string) error

func SortVersions added in v0.1.2

func SortVersions(versions []string)

SortVersions sorts a slice of version strings in descending order.

func SymbolicLink(oldname, newname string) error

func UnzipForWindows added in v0.0.6

func UnzipForWindows(zipFilePath, dstDir string) error

Types

type Version added in v0.1.2

type Version struct {
	Major int
	Minor int
	Patch int
	Beta  int
	RC    int
}

Version represents a version number.

func ParseVersion added in v0.1.2

func ParseVersion(version string) (v Version, err error)

ParseVersion parses a version string into a Version struct.

Jump to

Keyboard shortcuts

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