Documentation ¶
Index ¶
- func ContainsInt(a []int, i int) bool
- func ContainsInt64(a []int64, i int64) bool
- func ContainsString(a []string, s string) bool
- func CreateDir(dirs ...string) (err error)
- func FileExist(file string) bool
- func InStringSlice(slice []string, element string) bool
- func Int64Unique(a []int64) []int64
- func IsRunning(pid int) bool
- func PathExists(path string) (bool, error)
- func ReadFromFile(filename string) (int, error)
- func Remove(a []string, s string) []string
- func RemoveEmptyString(a []string) []string
- func ReplaceStrings(s string, old []string, replace []string) string
- func StringUnique(a []string) []string
- func WorkDir() (string, error)
- func WriteToFile(filename string, pids ...int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsInt64 ¶ added in v0.0.3
ContainsInt64 是否包含整型元素
func ContainsString ¶ added in v0.0.3
ContainsString 是否包含字符串元素
func InStringSlice ¶ added in v0.0.7
InStringSlice 字符串是否在字符切片中
func ReadFromFile ¶ added in v0.0.3
ReadFromFile 从文件中读取pid
func RemoveEmptyString ¶ added in v0.0.3
RemoveEmptyString 移除空字符串
func ReplaceStrings ¶ added in v0.0.3
ReplaceStrings 批量替换字符串
func WriteToFile ¶ added in v0.0.3
WriteToFile 写入pid到文件中
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.