mardi 24 janvier 2017

Reflection and CGo

I am new to Go and had a question regarding cgo. Here is my question. I have around 5 C libraries. I am developing a RESTful service which needs to call functions in these libraries dynamically based on the parameters the user send me.
Is there a way I can dynamically load the C libraries at runtime using reflection or Should I be loading all the libraries at once? If so can I call functions in these libraries using reflection ? Because I just get the name of the function and the parameters to be passed as a JSON object from the client





Aucun commentaire:

Enregistrer un commentaire