Documentation ¶
Index ¶
- Variables
- func Bytes2String(b []byte) string
- func FormatDateTime(s string) (time.Time, error)
- func FromGob(input []byte, parse any) error
- func GobConv(src any, dst any) error
- func If[T any](condition bool, trueVal, falseVal T) T
- func JsonConv(src any, dst any) error
- func MapConv(src map[string]any, dst any) error
- func OrZero[T any](data *T) T
- func Recover(msg string, goAfterRecover func(err error))
- func SplitBy(content, spliter, escape string) (ret []string)
- func SplitHead(content, spliter, escape string) (ret [2]string)
- func String2Bytes(s string) []byte
- func ToGob(input any) ([]byte, error)
- func ToStr(data any) string
- func ToTimeHookFunc() mapstructure.DecodeHookFunc
- func Try(invoke func())
- func TryCatch(invoke func(), fallback func(err error))
- type NoCopy
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DateTime = "2006-01-02 15:04:05" DateOnly = "2006-01-02" TimeOnly = "15:04:05" )
Functions ¶
func Bytes2String ¶
func String2Bytes ¶
func ToTimeHookFunc ¶
func ToTimeHookFunc() mapstructure.DecodeHookFunc
Types ¶
Click to show internal directories.
Click to hide internal directories.