app

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2026 License: Apache-2.0 Imports: 5 Imported by: 10

Documentation

Overview

Package app 应用信息

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrDate

func CurrDate() string

func CurrDateTime

func CurrDateTime() string

func CurrDateToUint32

func CurrDateToUint32() uint32

func DateTimeToTime

func DateTimeToTime(date string) time.Time

func DateToTime

func DateToTime(date string) time.Time

func GetStringUnix

func GetStringUnix() string

func GetStringUnixMilli

func GetStringUnixMilli() string

func IsLocal

func IsLocal() bool

func IsProduction

func IsProduction() bool

func IsTesting

func IsTesting() bool

func IsWhiteList

func IsWhiteList(c *gin.Context) bool

IsWhiteList ip白名单

func IsWhiteListStr

func IsWhiteListStr(ip string) bool

func LoDate

func LoDate(day int) string

func LoDateZh

func LoDateZh(day int) string

func StrToTime

func StrToTime(t string) int64

func TimenowInTimezone

func TimenowInTimezone() time.Time

TimenowInTimezone 获取当前时间,支持时区

func URL

func URL(path string) string

URL 传参 path 拼接站点的 URL

func UnixToDateTime

func UnixToDateTime(unix int64) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL