Documentation ¶
Index ¶
- func BCryptPassword(password string) (string, error)
- func ContextWithTimeout(timeout int) (context.Context, context.CancelFunc)
- func FormatUTCTime(t time.Time, offset int) time.Time
- func GenSnowflakeString() (string, error)
- func GetUTCTime() time.Time
- func IntToString(in int64) string
- func Parse32(idStr string) int32
- func Parse64(idStr string) int64
- func ParseU32(idStr string) uint32
- func ParseU64(idStr string) uint64
- func ParseUTCTime(t time.Time, offset int) time.Time
- func Query32(c *gin.Context, name string) int32
- func Query64(c *gin.Context, name string) int64
- func QueryU32(c *gin.Context, name string) uint32
- func QueryU64(c *gin.Context, name string) uint64
- func StringToTime(str string) (time.Time, error)
- func TimeToString(t time.Time) string
- func UintToString(in uint64) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BCryptPassword ¶
func ContextWithTimeout ¶
func ContextWithTimeout(timeout int) (context.Context, context.CancelFunc)
func FormatUTCTime ¶
FormatUTCTime local time -> UTC
func GenSnowflakeString ¶
func IntToString ¶
func ParseUTCTime ¶
ParseUTCTime UTC -> local time
func StringToTime ¶
StringToTime local time string -> UTC time.Time
func TimeToString ¶
TimeToString UTC time.Time -> local time string
func UintToString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.