mardi 28 juin 2016

check interface value nil in go lang with out using reflect

I need to check an interface value nil .

But ,by using reflect it is giving error as reflect: call of reflect.Value.Bool on struct Value.

Through nil it is not giving an error for nil value.





Aucun commentaire:

Enregistrer un commentaire