Documentation ¶
Overview ¶
Copyright (c) 2020 tickstep.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
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 IsExcludeFile(filePath string, excludeNames *[]string) bool
- 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 IsExcludeFile ¶ added in v0.1.3
IsExcludeFile 是否是指定排除的文件
func ParseVersionNum ¶ added in v0.0.9
Types ¶
This section is empty.