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.
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.
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 ChWorkDir()
- func ContainsString(ss []string, s string) bool
- func ConvertToUnixPathSeparator(p string) string
- func ConvertToWindowsPathSeparator(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 ListAddresses() (addresses []string)
- func ParseHost(address string) string
- 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 ConvertToWindowsPathSeparator ¶ added in v0.1.4
ConvertToWindowsPathSeparator 将路径中的所有分隔符转换成windows格式
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.