Documentation
¶
Index ¶
- func Daemon(nochdir, noclose int) int
- func DirExist(dirname string) bool
- func DirectoryCopy(source string, dest string) error
- func EmptyDirectory(path string) (bool, error)
- func ErrorExitCode(err error) int
- func FileCopy(source string, dest string) (int64, error)
- func FileExist(filename string) bool
- func GetExecAbsolutePath() (string, error)
- func GetExecDir() (string, error)
- func GetExecExt() (string, error)
- func GetExitCode(err error) (int, error)
- func InitSignal(fn SignalQuitFunc)
- func MakeDirectory(path string) error
- func PathExists(path string) (bool, error)
- func Promise(f func() error) <-chan error
- func ReadFileMD5Code(filepath string) (string, error)
- type DriverOpts
- func (do DriverOpts) Bool(key, env string) (bool, bool)
- func (do DriverOpts) Float(key, env string) (float64, bool)
- func (do DriverOpts) IP(key, env string) (net.IP, bool)
- func (do DriverOpts) Int(key, env string) (int64, bool)
- func (do DriverOpts) String(key, env string) (string, bool)
- func (do DriverOpts) Uint(key, env string) (uint64, bool)
- type SignalQuitFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DirectoryCopy ¶
func EmptyDirectory ¶
func GetExecAbsolutePath ¶
func GetExecDir ¶
func GetExecExt ¶
func InitSignal ¶
func InitSignal(fn SignalQuitFunc)
func MakeDirectory ¶
func PathExists ¶
func ReadFileMD5Code ¶
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
type SignalQuitFunc ¶
type SignalQuitFunc func()
Click to show internal directories.
Click to hide internal directories.