I have Go program that has a function defined. I also have a map that should have a key for each function. How can I do that?
I have tried this, but this doesn\'t wo
m := map[string]func(string, string)
Works if you know the signature (and all the funcs have the same signature) I think this is cleaner/safer than using interface{}