system

package
v0.0.0-...-0662ccb Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2019 License: Apache-2.0 Imports: 14 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Daemon

func Daemon(nochdir, noclose int) int

func DirExist

func DirExist(dirname string) bool

func DirectoryCopy

func DirectoryCopy(source string, dest string) error

func EmptyDirectory

func EmptyDirectory(path string) (bool, error)

func ErrorExitCode

func ErrorExitCode(err error) int

ErrorExitCode is exported

func FileCopy

func FileCopy(source string, dest string) (int64, error)

func FileExist

func FileExist(filename string) bool

func GetExecAbsolutePath

func GetExecAbsolutePath() (string, error)

func GetExecDir

func GetExecDir() (string, error)

func GetExecExt

func GetExecExt() (string, error)

func GetExitCode

func GetExitCode(err error) (int, error)

GetExitCode is exported

func InitSignal

func InitSignal(fn SignalQuitFunc)

func MakeDirectory

func MakeDirectory(path string) error

func PathExists

func PathExists(path string) (bool, error)

func Promise

func Promise(f func() error) <-chan error

func ReadFileMD5Code

func ReadFileMD5Code(filepath string) (string, error)

ReadFileMD5Code is exported read file real md5 code string.

Types

type DriverOpts

type DriverOpts []string

DriverOpts are key=values options

func (DriverOpts) Bool

func (do DriverOpts) Bool(key, env string) (bool, bool)

Bool returns a boolean from the driver options

func (DriverOpts) Float

func (do DriverOpts) Float(key, env string) (float64, bool)

Float returns a float64 from the driver options

func (DriverOpts) IP

func (do DriverOpts) IP(key, env string) (net.IP, bool)

IP returns an IP address from the driver options

func (DriverOpts) Int

func (do DriverOpts) Int(key, env string) (int64, bool)

Int returns an int64 from the driver options

func (DriverOpts) String

func (do DriverOpts) String(key, env string) (string, bool)

String returns a string from the driver options

func (DriverOpts) Uint

func (do DriverOpts) Uint(key, env string) (uint64, bool)

Uint returns an int64 from the driver options

type SignalQuitFunc

type SignalQuitFunc func()

Jump to

Keyboard shortcuts

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