utils

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasePath

func BasePath() (basePath string)

BasePath 获取项目的绝对路径

func CreatePath

func CreatePath(path string) (err error)

CreatePath 根据指定路径创建,若存在就不做任何操作。

func IsDir

func IsDir(src string) bool

IsDir 是否是目录

func IsFile

func IsFile(src string) bool

IsFile 是否是文件

func IsFileOrDirExists

func IsFileOrDirExists(src string) bool

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

func MD5

func MD5(src interface{}) (dst string, err error)

MD5 md5加密

Types

This section is empty.

Jump to

Keyboard shortcuts

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