Versions in this module Expand all Collapse all v1 v1.0.3 May 3, 2020 v1.0.2 May 2, 2020 Changes in this version + var ChinaPhoneRE = regexp.MustCompile(`^(\+86)?1[3-9][0-9]\d{8}$`) + var ErrorColor = color.New(color.FgRed).SprintFunc() + var HTTPSRE = regexp.MustCompile("^https") + func ChWorkDir() + func ContainsString(ss []string, s string) bool + func ConvertToUnixPathSeparator(p string) string + func CryptoMethodSupport(method string) bool + func DecompressGZIP(r io.Reader) ([]byte, error) + func DecryptFile(method string, key []byte, filePath string, isGzip bool) (decryptedFilePath string, err error) + func EncryptFile(method string, key []byte, filePath string, isGzip bool) (encryptedFilePath string, err error) + func Executable() string + func ExecutablePath() string + func ExecutablePathJoin(subPath string) string + func FlagProvided(names ...string) bool + func GetURLCookieString(urlString string, jar *cookiejar.Jar) string + func IsIPhoneOS() bool + func IsPipeInput() bool + func ListAddresses() (addresses []string) + func ParseHost(address string) string + func PrintErrAndExit(annotate string, err error) + func PrintErrIfExist(err error) + func SetLogPrefix() + func Trigger(f func()) + func TriggerOnSync(f func()) + func TrimPathPrefix(path, prefixPath string) string + func WalkDir(dirPth, suffix string) (files []string, err error)