utils

package
v0.0.0-...-8580c6f Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: GPL-3.0, GPL-3.0-or-later Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FPagination = newFPage()
View Source
var Pagination = newPage()

Functions

func CreatePath

func CreatePath(fpath string) error

创建目录

func FileIsExists

func FileIsExists(fname string) bool

判断文件是否存在

func GetFileSize

func GetFileSize(filename string) int64

获取文件大小

func GetPasswd

func GetPasswd(salt, pwd string) string

获取密码

func GetRandomString

func GetRandomString(l int) string

获取随机字符串

func InArray

func InArray(val interface{}, array interface{}) (exists bool, index int)

in_array

func Md5V

func Md5V(str string) string

生成MD5字符串

func UniqueId

func UniqueId() string

生成Guid字串

Types

This section is empty.

Jump to

Keyboard shortcuts

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