Documentation
¶
Overview ¶
Package utils 工具包
Index ¶
- func ContainsString(ss []string, s string) bool
- func DecompressGZIP(r io.Reader) ([]byte, error)
- func FlagProvided(names ...string) bool
- func GetURLCookieString(urlString string, jar *cookiejar.Jar) string
- func ParseVersionNum(versionStr string) int
- func Trigger(f func())
- func TriggerOnSync(f func())
- func TrimPathPrefix(path, prefixPath string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecompressGZIP ¶
DecompressGZIP 对 io.Reader 数据, 进行 gzip 解压
func FlagProvided ¶
FlagProvided 检测命令行是否提供名为 name 的 flag, 支持多个name(names)
func GetURLCookieString ¶
GetURLCookieString 返回cookie字串
func ParseVersionNum ¶ added in v0.0.9
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.