lundi 23 mars 2015

How can I convert type dynamically in runtime in Golang?

Here is my example: http://ift.tt/1B7TXcT


Basically I want to do this:



theType := reflect.TypeOf(anInterfaceValue)
theConvertedValue := anInterfaceValue.(theType)





Aucun commentaire:

Enregistrer un commentaire