Documentation ¶
Index ¶
- func Any2Bool(v interface{}) (bool, error)
- func Any2Double(v interface{}) (float64, error)
- func Any2Int(v interface{}) (int, error)
- func Any2Int32(v interface{}) (int32, error)
- func Any2Int64(v interface{}) (int64, error)
- func Bool2Str(b bool) string
- func Double2Str(v float64) string
- func Int32ToInt(v int32) int
- func Int32ToInt64(v int32) int64
- func Int64ToInt(v int64) int
- func Int64ToInt32(v int64) int32
- func IntToInt32(v int) int32
- func IntToInt64(v int) int64
- func MicroSec2LocalStr(msec int64) string
- func MicroSec2LocalStrWithLay(msec int64, layout string) string
- func MicroSec2Time(msec int64) time.Time
- func MicroSec2UTCStr(msec int64) string
- func MicroSec2UTCStrWithLay(msec int64, layout string) string
- func MillSec2LocalStr(msec int64) string
- func MillSec2LocalStrWithLay(msec int64, layout string) string
- func MillSec2Time(msec int64) time.Time
- func MillSec2UTCStr(msec int64) string
- func MillSec2UTCStrWithLay(msec int64, layout string) string
- func MustAny2Bool(v interface{}) bool
- func MustAny2Double(v interface{}) float64
- func MustAny2Int(v interface{}) int
- func MustAny2Int32(v interface{}) int32
- func MustAny2Int64(v interface{}) int64
- func MustStr2Bool(v string) bool
- func MustStr2Double(v string) float64
- func MustStr2Int(v string) int
- func MustStr2Int32(v string) int32
- func MustStr2Int64(v string) int64
- func RawMicroSec2Str(msec int64, layout string, loc *time.Location) string
- func RawMillSec2Str(sec int64, layout string, loc *time.Location) string
- func RawSec2Str(sec int64, layout string, loc *time.Location) string
- func Sec2LocalStr(sec int64) string
- func Sec2LocalStrWithLay(sec int64, layout string) string
- func Sec2Time(sec int64) time.Time
- func Sec2UTCStr(sec int64) string
- func Sec2UTCStrWithLay(sec int64, layout string) string
- func Str2Bool(v string) (bool, error)
- func Str2Bytes(v string) []byte
- func Str2Double(v string) (float64, error)
- func Str2Int(v string) (int, error)
- func Str2Int32(v string) (int32, error)
- func Str2Int64(v string) (int64, error)
- func Str2Time(str string) (time.Time, error)
- func Str2TimeWithLay(str, layout string) (time.Time, error)
- func Time2LocalStr(t time.Time) string
- func Time2LocalStrWithLay(t time.Time, layout string) string
- func Time2Str(t time.Time, layout string, loc *time.Location) string
- func Time2UTCStr(t time.Time) string
- func Time2UTCStrWithLay(t time.Time, layout string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Any2Double ¶
func Double2Str ¶
func Int32ToInt ¶
func Int32ToInt64 ¶
func Int64ToInt ¶
func Int64ToInt32 ¶
func IntToInt32 ¶
func IntToInt64 ¶
func MicroSec2LocalStrWithLay ¶
MicroSec2LocalStrWithLay 毫秒级时间戳转东八区字符串
func MicroSec2UTCStrWithLay ¶
MicroSec2UTCStrWithLay 毫秒级时间戳转UTC时区字符串
func MillSec2LocalStrWithLay ¶
MillSec2LocalStrWithLay 毫秒级时间戳转东八区字符串
func MillSec2UTCStrWithLay ¶
MillSec2UTCStrWithLay 毫秒级时间戳转UTC时区字符串
func MustAny2Bool ¶
func MustAny2Bool(v interface{}) bool
func MustAny2Double ¶
func MustAny2Double(v interface{}) float64
func MustAny2Int ¶
func MustAny2Int(v interface{}) int
func MustAny2Int32 ¶
func MustAny2Int32(v interface{}) int32
func MustAny2Int64 ¶
func MustAny2Int64(v interface{}) int64
func MustStr2Bool ¶
func MustStr2Double ¶
func MustStr2Int ¶
func MustStr2Int32 ¶
func MustStr2Int64 ¶
func RawMicroSec2Str ¶
RawMicroSec2Str 毫秒级时间戳转字符串
func RawMillSec2Str ¶
RawMillSec2Str 毫秒级时间戳转字符串
func RawSec2Str ¶
RawSec2Str 秒级时间戳转字符串
func Sec2LocalStrWithLay ¶
Sec2LocalStrWithLay 秒级时间戳转东八区字符串
func Sec2UTCStrWithLay ¶
Sec2UTCStrWithLay 秒级时间戳转UTC时区字符串
func Str2Double ¶
func Str2TimeWithLay ¶
Str2TimeWithLay 字符串转time
func Time2LocalStr ¶
func Time2UTCStr ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.