sys

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileModDateCompare

func FileModDateCompare(file1, file2 string) (diff int, err error)

FileModDateCompare compares the modification date of two files, and returns -1 if the first is older than the second, 0 if they are the same, and 1 if the 2nd is older than the first. Returns an error if either is not a file.

func LaunchChrome

func LaunchChrome(url string) (err error)

LaunchChromeHeadlessBrowser will launch google chrome with the given url.

func LaunchDefaultBrowser

func LaunchDefaultBrowser(url string) (err error)

LaunchDefaultBrowser launches the system's default browser and opens the browser to the given url. Not that most Linux systems do not have a default.

func PathExists

func PathExists(path string) bool

PathExists returns true if the given path exists in the OS. This does not necessarily mean that the path is usable. It may be write or read protected. But at least you know its there.

Types

This section is empty.

Jump to

Keyboard shortcuts

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