Documentation ¶
Index ¶
- func ElemOr[T any](value *T, or T) T
- func ExistOr[T any](value *T, or *T) *T
- func Float64ify(input any) float64
- func FormatFloat(float float64) string
- func If[T any](test bool, ok, no T) T
- func Int64Slice(input []rune) []int64
- func Int64ify(input any) int64
- func ParseFloat(input string) float64
- func ParseGeneralDate(input []rune) time.Time
- func ParseInt(input string) int64
- func Ptr[T any](value T) *T
- func SplitBytes(bts []byte, count int) [][]byte
- func Stringify(input any) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Float64ify ¶
func FormatFloat ¶
func ParseFloat ¶
func ParseGeneralDate ¶
ParseGeneralDate 解析任意字段有序的日期 顺序必须是:年月日时分秒纳秒,兼容ISO8601UTC时区 时间字段可以是任意分隔符或填充位数,示例如下: 2022年8月21日19点18分38秒123456789纳秒 20220821191838.123456789 2022-8-21T19:18:38.123456789+8:30 2022-8-21 19:18:38Z(可以没有纳秒) 2022-8-21(可以没有时间,甚至可以没有日期)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.