utils

package
v0.0.0-...-c9d2c38 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOSName

func GetOSName() string

GetOSName returns the name of the current operating system

func GetPWD

func GetPWD() string

GetPWD returns the present working directory (for updating binaries)

func Unzip

func Unzip(src, dest string) error

Unzip will unzip the downloaded update to the PWD.

func ValidateChecksum

func ValidateChecksum(filePath, expectedChecksum string) bool

ValidateChecksum will validate the checksum with the one that has been supplied at update.json to ensure it has been downloaded properly and not modified by a third party.

Types

This section is empty.

Jump to

Keyboard shortcuts

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