support Go map of functions `map[string]func(int)(int){}`