Documentation ¶
Index ¶
- Constants
- func CompressGzip(data []byte) ([]byte, error)
- func DecompressGzip(data []byte) ([]byte, error)
- func First[T any](defaultArg T, args []T) T
- func GetBoolValue(m map[string]any, key string) (bool, bool)
- func GetFloatValue(m map[string]any, key string) (float64, bool)
- func GetIntValue(m map[string]any, key string) (int, bool)
- func GetInterfaceSlice(m map[string]any, key string) ([]any, bool)
- func GetStringSlice(m map[string]any, key string) ([]string, bool)
- func GetStringValue(m map[string]any, key string) (string, bool)
- func JsonParse[T any](data []byte) (T, error)
- func JsonString(data any) string
- func Max[T int | int32 | int64 | float32 | float64](a, b T) T
- func Min[T int | int32 | int64 | float32 | float64](a, b T) T
- func RandStr(ns ...int) string
- func UUID(ns ...int) string
Constants ¶
View Source
const ( TimeLayout = "2006-01-02 15:04:05" TimeLayoutMs = "2006-01-02 15:04:05.000" )
Variables ¶
This section is empty.
Functions ¶
func CompressGzip ¶ added in v1.5.3
func DecompressGzip ¶ added in v1.5.3
func JsonString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.