mardi 4 décembre 2018

Golang determine object is composite (type) or not

For example, x interface{} is given. How it can be determined (maybe using reflection) if it is a composite type (struct or pointer to struct) or "simple" type like string, int, float, etc?





Aucun commentaire:

Enregistrer un commentaire