Documentation
¶
Index ¶
- func Exists(name string) bool
- func GetFunctionName(i interface{}) string
- func GetLocalIPs() ([]*net.IP, error)
- func Go(f func() error) chan error
- func HomeDir() (home string, err error)
- func IsDir(name string) bool
- func IsFile(name string) bool
- func IsLocalhost(host string) bool
- func ReadExitcode(err error) int
- func SelfDir() string
- func ShRun(name string, args ...string) error
- func Template(s string, m map[string]string) string
- func TrapSignal(f func(sig os.Signal), sigs ...os.Signal)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFunctionName ¶
func GetFunctionName(i interface{}) string
func GetLocalIPs ¶
This returns the list of local ip addresses which other hosts can connect to (NOTE: Loopback ip is ignored).
func HomeDir ¶
HomeDir returns path of '~'(in Linux) on Windows, it returns error when the variable does not exist.
func IsLocalhost ¶
Given a host string, return true if the host is an ip (v4/v6) localhost.
func ReadExitcode ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.