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 BoolToString(b bool) string
- func IsEmptyString(s string) bool
- func MapToStruct[T any](maps ...map[string]interface{}) []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{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayDeduplication ¶
func ArrayFilter ¶
func BoolToString ¶
func IsEmptyString ¶
func MapToStruct ¶
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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.