utils

package
v0.0.0-...-e0f34cb Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFilesAndDirs

func GetFilesAndDirs(dirPth string, files *[]string, dirs *[]string) error

获取指定目录下的所有文件和目录(支持递归遍历,但是要考虑遍历深度,可能会出现因为文件夹嵌套太深堆栈不够用)

func LoadConfig

func LoadConfig(path, cfgFileType string, cfg interface{}) error

func PathExists

func PathExists(path string) (bool, error)

func Tar

func Tar(src []string, dst string) error

func UnTar

func UnTar(srcFile string, unTarDir string) error

FIXME: need test

Types

This section is empty.

Jump to

Keyboard shortcuts

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