flietools

package
v0.0.0-...-4cd9d19 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDirectory

func CreateDirectory(logpath string) error

创建目录文件

func GetFileNameSubSuffix

func GetFileNameSubSuffix(filepath string) string

获取去除文件后缀的文件名称

func IsExist

func IsExist(path string) bool

判断文件或文件夹是否存在

func ReadJsonFileToStruct

func ReadJsonFileToStruct(path string, d interface{}) error

读取json文件到结构体中 参数必须是指针

func Unzip

func Unzip(zipFile string, destDir string) error

func WrietStructToJsonFile

func WrietStructToJsonFile(path string, d interface{}) error

将数据写入json文件中

Types

This section is empty.

Jump to

Keyboard shortcuts

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