Documentation ¶
Index ¶
- Constants
- func CreateToken(userId string, secretString string) string
- func EncodePassword(password string) string
- func FileIsExisted(filename string) bool
- func Get16MD5Encode(data string) string
- func GetMD5Encode(data string) string
- func GetRandomString(n int) string
- func GetUuid() string
- func GetUuidV4() string
- func IsDir(name string) bool
- func MakeDir(dir string) error
- func ParseToken(tokenString string, secretString string) (string, error)
- func VerifyPassword(plainPwd string, hashedPwd string) bool
- func VerifyToken(tokenString string, secretString string) bool
- type LocalTime
Constants ¶
View Source
const TimeFormat = "2006-01-02 15:04:05"
Variables ¶
This section is empty.
Functions ¶
func CreateToken ¶
func FileIsExisted ¶
func Get16MD5Encode ¶
func GetRandomString ¶
letters + numbers + other visible ascii chars
func VerifyToken ¶
Types ¶
type LocalTime ¶
func (LocalTime) MarshalJSON ¶
MarshalJSON on JSONTime format Time field with Y-m-d H:i:s
func (*LocalTime) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.