Documentation ¶
Index ¶
- func ArrayDeduplication(sub []string) []string
- func ArrayFilter[T any](filterData []T, filter func(v T) bool) ([]T, []T)
- func ArrayFind(s string, sub []string) (int, bool)
- func ArrayFinds[T any](maps []T, f func(m T) bool) (int, bool, T)
- func ArrayStructToArrayMap(obj interface{}) ([]map[string]interface{}, error)
- func ArrayValConvert[T any](arrayV1 []interface{}) []T
- func BoolToString(b bool) string
- func DeepCopyMap[T any](obj map[string]T) map[string]T
- func IsEmptyValue(val interface{}) bool
- func MapToStruct[T any](maps ...map[string]interface{}) []T
- func MapValConvert[T any](mapV1 map[string]interface{}) map[string]T
- func MergeMap[T any](maps ...map[string]T) map[string]T
- func ParseDateTime(timeStr *string) (time.Time, error)
- func SliceRemove(s string, o interface{}) interface{}
- func StringToBool(b string) bool
- func StructToMap(obj interface{}) map[string]interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayDeduplication ¶
func ArrayFilter ¶
func ArrayStructToArrayMap ¶
func ArrayValConvert ¶ added in v1.0.3
func ArrayValConvert[T any](arrayV1 []interface{}) []T
func BoolToString ¶
func DeepCopyMap ¶
func IsEmptyValue ¶
func IsEmptyValue(val interface{}) bool
func MapToStruct ¶
func MapValConvert ¶
func ParseDateTime ¶
ParseDateTime parse time string to time.Time (2006-01-02 15:04:05)
func SliceRemove ¶
func SliceRemove(s string, o interface{}) interface{}
func StringToBool ¶
func StructToMap ¶
func StructToMap(obj interface{}) map[string]interface{}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.