Documentation ¶
Index ¶
- Constants
- func AddCommonHeader(headers map[string]string) map[string]string
- func CheckFileNameValid(name string) bool
- func DateOfGmtStr() string
- func GetMapSet(param interface{}) map[string]interface{}
- func LocalTime2UtcFormat(utcTimeStr string) string
- func Rand() string
- func Timestamp() int
- func UnixTime2LocalFormat(unixTime int64) string
- func UtcTime2LocalFormat(timeStr string) string
- func Uuid() string
- func XRequestId() string
Constants ¶
View Source
const (
FileNameSpecialChars = "\\/:*?\"<>|"
)
Variables ¶
This section is empty.
Functions ¶
func AddCommonHeader ¶
AddCommonHeader 增加公共header
func CheckFileNameValid ¶
CheckFileNameValid 检测文件名是否有效,包含特殊字符则无效
func DateOfGmtStr ¶
func DateOfGmtStr() string
func LocalTime2UtcFormat ¶
LocalTime2UtcFormat 本地时间转换为UTC时间
func UnixTime2LocalFormat ¶ added in v0.0.6
UnixTime2LocalFormat 时间戳转换为本地时间字符串
func UtcTime2LocalFormat ¶
UtcTime2LocalFormat UTC时间转换为本地时间
func XRequestId ¶
func XRequestId() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.