utils

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckEmail

func CheckEmail(email string) error

CheckEmail will check a email is valid

func CheckHashPass

func CheckHashPass(hashpass string, password string) (err error)

CheckHashPass check hashpassword valid

func CheckID

func CheckID(id string) error

CheckID check id valid

func GenerateHashPass

func GenerateHashPass(password string) (hashpassword string, err error)

GenerateHashPass generate hashpassword by text password

func GetID

func GetID() string

GetID generate id

func StrToUnix

func StrToUnix(t string) int64

StrToUnix change str to unix

func UnixToStr

func UnixToStr(i int64) string

UnixToStr change int to strc

Types

type Worker

type Worker struct {
	// contains filtered or unexported fields
}

Worker Snake Id worker

Jump to

Keyboard shortcuts

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