util

package
v0.0.0-...-db6f998 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2018 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearSession

func ClearSession(ctx echo.Context)

ClearSession clearing all session.

func CompareHash

func CompareHash(hashPwd []byte, pwd string) bool

func GenerateHash

func GenerateHash(password string) ([]byte, error)

func GetSession

func GetSession(ctx echo.Context, name string)

GetSession to get a new session.

func ParseConf

func ParseConf(filename string, v interface{}) error

解析 .json 类型配置文件

func PhoneNum

func PhoneNum(phone 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