Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CallBackMap map[string]interface{}
Functions ¶
func CallBackFunc ¶
func ConvertSliceToMap ¶
func ConvertSliceToMap(slice []interface{}) map[string]interface{}
convertSliceToMap converts a slice of interfaces into a map[string]interface{}. It iterates over the slice, treating every even-indexed element as the key and the following odd-indexed element as the value. If the key is a string, it adds the key-value pair to the resulting map. The function returns the resulting map.
func RegisterCallBack ¶
func RegisterCallBack(key string, callBack interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.