utils

package
v0.0.0-...-3f800da Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDirPath

func CheckDirPath(path string) (bool, error)

检查文件夹并创建

func DirSize

func DirSize(path string) (int64, error)

获取文件夹大小

func FileExit

func FileExit(path string) bool

文件是否存在

func GetFilePart

func GetFilePart(dirPth string) (files []string, err error)

获取part文件

func PathExists

func PathExists(path string) (bool, error)

文件夹是否存在

func PwdSaltMd5

func PwdSaltMd5(str string) string

func SortName

func SortName(filename string) string

sortName returns a filename sort key with non-negative integer suffixes in numeric order. For example, amt, amt0, amt2, amt10, amt099, amt100, ...

func VerifyEmail

func VerifyEmail(email string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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