vendredi 18 septembre 2015

Golang: How can I use refect package with exsisting library

I want to call a function in a existing library from function name.

In golang, just calling method from methodname is OK, because reflect package has (v Value) MethodByName(name string). But, for calling a method, all method argument should be reflect.Value.

How can I call a function whose argument are not reflect.Value.

Please See below: http://ift.tt/1iUeDCH





Aucun commentaire:

Enregistrer un commentaire