common

package
v0.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(srcFile, destFile string) error

CopyFile 拷贝文件

func Filter

func Filter(rel string, filter []string) bool

Filter 过滤

func GetAPIProxyURL added in v0.9.2

func GetAPIProxyURL() (string, error)

GetAPIProxyURL 获取API代理服务地址

func GetGoModuleCacheDownloadPath

func GetGoModuleCacheDownloadPath() string

GetGoModuleCacheDownloadPath 获取本地Go mod 存储路径

func GetGoModulePath

func GetGoModulePath() string

GetGoModulePath 获取本地Go mod 存储路径

func GetGoPath

func GetGoPath() string

GetGoPath 获取GOPATH路径

func MkDirs

func MkDirs(path string) error

MkDirs 创建文件夹

func PathExists

func PathExists(path string) bool

PathExists 判断文件夹是否存在

func Unzip

func Unzip(zipFile, dest string) error

Unzip 解压

func Zip

func Zip(fileDir string, zipFile string) error

Zip 压缩

func ZipFilter

func ZipFilter(fileDir string, zipFile string, prefix string, filter []string) error

ZipFilter 压缩

func ZipHash added in v0.9.1

func ZipHash(zipFile string) string

ZipHash 计算zip文件hash值

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL