Documentation
¶
Index ¶
- func MapGetKeys[M ~map[K]V, K comparable, V any](m M) []K
- func MapGetValue[T any](M1 map[string]any, key string) (result T)
- func MapGetValueToString(M1 map[string]any, key string) (result string)
- func MapToString(M1 map[string]any) (r string)
- func RegexpSubmatch(str_input string, regex_expression string, index int) (r string)
- func SliceToString(S1 []any, sep string) (result string)
- func SliceUnique[T cmp.Ordered](S1 []T) []T
- func StringToMap(s string) (M1 map[string]any, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapGetValue ¶
读取 map 中的值并返回指定类型的值
func MapGetValueToString ¶
读取 map 中的值并返回 string 类型的值,其他类型会强制使用 fmt.Sprintf("%v") 转换
func MapToString ¶
func RegexpSubmatch ¶
正则提取参数值(分组查询)
func SliceToString ¶
将任意类型的数组 S1 转为string字符串,间隔符 sep
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.