Documentation ¶
Index ¶
- func ChWorkDir()
- func ContainsString(ss []string, s string) bool
- func ConvertToUnixPathSeparator(p string) string
- func DecompressGZIP(r io.Reader) ([]byte, 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 Trigger(f func())
- func TriggerOnSync(f func())
- func TrimPathPrefix(path, prefixPath string) string
- func WalkDir(dirPth, suffix string) (files []string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToUnixPathSeparator ¶
ConvertToUnixPathSeparator 将 windows 目录分隔符转换为 Unix 的
func DecompressGZIP ¶
DecompressGZIP 对 io.Reader 数据, 进行 gzip 解压
func ExecutablePathJoin ¶
ExecutablePathJoin 返回程序所在目录的子目录
func FlagProvided ¶
FlagProvided 检测命令行是否提供名为 name 的 flag, 支持多个name(names)
func GetURLCookieString ¶
GetURLCookieString 返回cookie字串
func IsPipeInput ¶
func IsPipeInput() bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.