tool

package
v0.0.0-...-a18df83 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrencyUnitFloat

func CurrencyUnitFloat(currency, unit interface{}) string

将整形货币转为浮点数

func CurrencyUnitInt

func CurrencyUnitInt(currency, unit interface{}) int

将浮点货币转整形

func FilePathFormat

func FilePathFormat(path interface{}) string

路径格式化

func GetCurrencyMinUnit

func GetCurrencyMinUnit() interface{}

getCurrencyMinUnit

func GetFilesPath

func GetFilesPath(path string) string

filesPath

func GetUrl

func GetUrl() string

getUrl

func HashPassword

func HashPassword(pwd []byte) (string, error)

hash_password

func IAERes

func IAERes(c interface{}) interface{}

信息 添加 编辑 聚合请求

func IsValueInSplit

func IsValueInSplit(value string, list []string) bool

判断切片是否存在某个值

func PathExists

func PathExists(path string) (bool, error)

判断文件或文件夹是否存在 如果返回的错误为nil,说明文件或文件夹存在 如果返回的错误类型使用os.IsNotExist()判断为true,说明文件或文件夹不存在 如果返回的错误为其它类型,则不确定是否在存在

func TimeFormat

func TimeFormat(t *time.Time) string

时间格式化

func VerifyPassword

func VerifyPassword(pwd []byte, hPwd string) error

verify_hash_password

Types

This section is empty.

Directories

Path Synopsis
pay

Jump to

Keyboard shortcuts

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