Documentation
¶
Index ¶
- Constants
- func ContainByte(o byte, a ...byte) bool
- func ContainFloat32(o float32, a ...float32) bool
- func ContainFloat64(o float64, a ...float64) bool
- func ContainInt(o int, a ...int) bool
- func ContainInt32(o int32, a ...int32) bool
- func ContainInt64(o int64, a ...int64) bool
- func ContainString(o string, a ...string) bool
- func Decimal(value float64) float64
- func Duplicate(a interface{}) (ret []interface{})
- func Duration(hours int) time.Duration
- func GetGmtimeStr() string
- func GetLocaltimeStr() string
- func GetTmShortStr(tm time.Time, format string) string
- func GetTmStr(tm time.Time, format string) string
- func GetUnixTimeShortStr(ut int64, format string) string
- func GetUnixTimeStr(ut int64, format string) string
- func GoStdRubyDate() string
- func GoStdTime() string
- func GoStdUnixDate() string
- func Greatest(arr []time.Time) time.Time
- func Is400(str string) bool
- func IsChineseCharacter(str string) bool
- func IsEmail(str string) bool
- func IsFloat(str string) bool
- func IsHMS(str string) bool
- func IsHMS_APM(str string) bool
- func IsIP(str string) bool
- func IsNumber(str string) bool
- func IsPhone(str string) bool
- func IsSpecialSymbols(str string) bool
- func IsTel(str string) bool
- func IsYMD(str string) bool
- func IsYMDHMS(str string) bool
- func JsonFormat(o interface{}) string
- func RandIntn(n int) int
- func RetroWeekN(n time.Weekday) time.Time
- func ReverseByteSlice(s []byte)
- func ReverseFloat32Slice(s []float32)
- func ReverseFloat64Slice(s []float64)
- func ReverseInt32Slice(s []int32)
- func ReverseInt64Slice(s []int64)
- func ReverseIntSlice(s []int)
- func ReverseStringSlice(s []string)
- func SQLInInt(items ...int) (inSql string)
- func SQLInInt32(items ...int32) (inSql string)
- func SQLInInt64(items ...int64) (inSql string)
- func SQLInString(items ...string) (inSql string)
- func StrToInt64(num string) int64
- func StrToTime(timeStr string, template TimeTemplate) (time.Time, error)
- func T3(b bool, x, y interface{}) interface{}
- func TimeOfYMD(tm time.Time) time.Time
- type TimeSlice
- type TimeTemplate
Constants ¶
View Source
const ( TT1 TimeTemplate = "2006-01-02 15:04:05" TT2 = "2006/01/02 15:04:05" TT3 = "2006-01-02" TT4 = "20060102" TT5 = "15:04:05" )
View Source
const CNM = `` /* 306-byte string literal not displayed */
View Source
const DEEPLINK = `` /* 152-byte string literal not displayed */
View Source
const EMTF = `` /* 1003-byte string literal not displayed */
View Source
const HOLLSON = `` /* 301-byte string literal not displayed */
View Source
const SYBS = `
__
_____ __/ / ___
(_-/ // / _ \(_-<
/___\_, /_.__/___/
/___/ `
Variables ¶
This section is empty.
Functions ¶
func GetGmtimeStr ¶
func GetGmtimeStr() string
func GetLocaltimeStr ¶
func GetLocaltimeStr() string
func GetUnixTimeShortStr ¶
func GetUnixTimeStr ¶
func GoStdRubyDate ¶
func GoStdRubyDate() string
func GoStdUnixDate ¶
func GoStdUnixDate() string
Types ¶
type TimeTemplate ¶
type TimeTemplate string
Click to show internal directories.
Click to hide internal directories.