Documentation ¶
Overview ¶
Package go18, golang十八般武艺(shibabanwuyi-s10i).
Index ¶
- func GbkToUtf8(s []byte) ([]byte, error)
- func ParseDuration(d string) (time.Duration, error)
- func Utf8ToGbk(s []byte) ([]byte, error)
- func X2String(val interface{}) (str string)
- func XChinaMonth(day time.Time) string
- func XChinaWeekday(prefix string, day time.Time) string
- func XDayLast235959(t time.Time) time.Time
- func XIsInSlice(item interface{}, parent interface{}) (isExist bool, err error)
- func XMonthDayCnt(when time.Time) int
- func XMonthDayList(when time.Time) (dayList []string)
- func XMonthFirst(t time.Time) time.Time
- func XMonthLast(t time.Time) time.Time
- func XMonthLast235959(t time.Time) time.Time
- func XOrderNoFromNow() string
- func XRandomInt(length int) string
- func XRandomIntRange(min, max int) int
- func XRandomString(length int) string
- func XWeekFirst(t time.Time) time.Time
- func XWeekLast(t time.Time) time.Time
- func XWeekLast235959(t time.Time) time.Time
- func XWeekdayInt(t time.Time) int
- func XYearFirst(t time.Time) time.Time
- func XYearLast(t time.Time) time.Time
- func XYearLast235959(t time.Time) time.Time
- func XZeroTime(d time.Time) time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func XOrderNoFromNow ¶
func XOrderNoFromNow() string
XOrderNoFromNow 基于当前时间的字符串,可作为订单号使用
格式 20060102150405000000000
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.