Documentation ¶
Index ¶
- func BoolToStr(v bool) string
- func DateTimeToStr(v time.Time) string
- func DateTimeWithSecToStr(v time.Time) string
- func DateToStr(v time.Time) string
- func Float32ToStr(v float32, prec int, withLastZeroFlag bool) string
- func Float64ToStr(v float64, prec int, withLastZeroFlag bool) string
- func IntToStr(v int) string
- func StrToBool(str string) bool
- func StrToBool2(str string, defaultValue bool) bool
- func StrToDate(str string) time.Time
- func StrToDateTime(str string) time.Time
- func StrToDateTime2(str string, defaultValue time.Time) time.Time
- func StrToFloat(str string) float64
- func StrToFloat2(str string, defaultValue float64) float64
- func StrToInt(str string) int
- func StrToInt2(str string, defaultValue int) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DateTimeWithSecToStr ¶
DateTimeWithSecToStr 格式2006.01.02 15:04:05
func Float32ToStr ¶
Float32ToStr ..
func Float64ToStr ¶
Float64ToStr ..
func StrToDateTime ¶
StrToDateTime 字符串转换为日期(不去除时间部分,使用Local) 转换错误抛出异常
func StrToDateTime2 ¶
StrToDateTime2 字符串转换为日期(不去除时间部分,使用Local) 转换错误返回默认值
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.