callback_mgr

package
v0.0.0-...-edbed3e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2024 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CallBackMap map[string]interface{}

Functions

func CallBackFunc

func CallBackFunc(key string, args ...interface{}) ([]interface{}, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL