Documentation ¶
Index ¶
- func BcryptCheck(password, hash string) bool
- func BcryptHash(password string) string
- func Convert2Float32(str string, dv float32) float32
- func ConvertPrt2Ids(str *string) []int64
- func ConvertString2Ids(str string) []int64
- func DoSend(to []string, subject string, body string) errordeprecated
- func Format[T *time.Time | time.Time](t T, format ...string) string
- func Format1(t *time.Time) stringdeprecated
- func FormatV0(t *time.Time) stringdeprecated
- func FormatVal(t time.Time) stringdeprecated
- func JonIds(ids []int64, sp string) string
- func MD5V(str []byte, b ...byte) string
- func Marshal(val any) (map[string]map[string]any, error)
- func MustParse(tStr string) time.Time
- func Parse(tStr string) (time.Time, error)
- func ReadAsNestedMap[T Numeric](filePath string, separator rune, fn func(v string, dv T) T, dv T) (map[string]map[string]T, error)
- func ToPrt[T any](i T) *T
- func ToVl[T any](i *T) T
- func TryParse(tStr string) time.Time
- type Numeric
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BcryptCheck ¶ added in v0.3.3
BcryptCheck 对比明文密码和数据库的哈希值
func BcryptHash ¶ added in v0.3.3
BcryptHash 使用 bcrypt 对密码进行加密
func Convert2Float32 ¶
func ConvertPrt2Ids ¶ added in v0.3.5
func ConvertString2Ids ¶ added in v0.3.5
func MD5V ¶ added in v0.3.3
MD5V @function: MD5V @description: md5加密 @param: str []byte @return: string
func Marshal ¶
Marshal marshals the given val and returns the map that contains the fields. optional=another is not implemented, and it's hard to implement and not common used.
Types ¶
Click to show internal directories.
Click to hide internal directories.