Documentation
¶
Index ¶
- Constants
- func CheckPassword(password string, hashedPassword string) error
- func FormatTime(t time.Time, tz *time.Location) string
- func GetMD5(str string, salt string, iteration int) string
- func HashPassword(password string) (string, error)
- func HexColorToInt[T int | int32 | int64](colorStr string) (T, error)
- func IntToHexColor[T int | int32 | int64](color T) string
- func RandomCode(len int) string
- func RandomColorInt() int32
- func RandomEmail() string
- func RandomInt(min, max int64) int64
- func RandomString(n int) string
Constants ¶
View Source
const ALPHABET = "abcdefghijklmnopqrstuvwxyz"
View Source
const COLOR_FFFFFF = 16777215
View Source
const TIME_FORMAT = "2006-01-02 15:04:05"
Variables ¶
This section is empty.
Functions ¶
func CheckPassword ¶
func HashPassword ¶
func RandomColorInt ¶
func RandomColorInt() int32
func RandomEmail ¶
func RandomEmail() string
func RandomString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.