I want to create a single function interface with a function that takes an ID and a parameter struct. Internally, functions are called and parameters from the struct are passed to the function. the returning values are passed to pointers in the struct. What are some pitfalls in this design? Is there anything that is faster than a switch-case statement?I want to create a single function interface wi