Documentation
¶
Overview ¶
Package app 应用信息
Index ¶
- func CurrDate() string
- func CurrDateTime() string
- func CurrDateToUint32() uint32
- func DateTimeToTime(date string) time.Time
- func DateToTime(date string) time.Time
- func GetStringUnix() string
- func GetStringUnixMilli() string
- func IsLocal() bool
- func IsProduction() bool
- func IsTesting() bool
- func IsWhiteList(c *gin.Context) bool
- func IsWhiteListStr(ip string) bool
- func LoDate(day int) string
- func LoDateZh(day int) string
- func StrToTime(t string) int64
- func TimenowInTimezone() time.Time
- func URL(path string) string
- func UnixToDateTime(unix int64) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrDateTime ¶
func CurrDateTime() string
func CurrDateToUint32 ¶
func CurrDateToUint32() uint32
func DateTimeToTime ¶
func DateToTime ¶
func GetStringUnix ¶
func GetStringUnix() string
func GetStringUnixMilli ¶
func GetStringUnixMilli() string
func IsProduction ¶
func IsProduction() bool
func IsWhiteListStr ¶
func UnixToDateTime ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.