os2

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2015 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

View Source
const (
	LINUX   = "linux"
	WINDOWS = "windows"
	DARWIN  = "darwin"
	FREEBSD = "freebsd"
	SOLARIS = "solaris"
	ANDROID = "android"
	UNKNOWN = "unknown"
)

Variables

This section is empty.

Functions

func IsAndroid

func IsAndroid() bool

func IsDarwin

func IsDarwin() bool

func IsFreebsd

func IsFreebsd() bool

func IsLinux

func IsLinux() bool

func IsSolaris

func IsSolaris() bool

func IsWindows

func IsWindows() bool

func OS

func OS() string

func RunCmd

func RunCmd(in io.Reader, out, err io.Writer, args ...string) error

RunCmd is a quick way to exec.Command().Run, first elelemts of args should be the command to execute

func StdRunCmd

func StdRunCmd(in io.Reader, out, err io.Writer, args ...string) error

StdRunCmd run commond, if reader or writer is nil, use os.Stdin/out/err,

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