dimanche 6 février 2022

How do I know the field is private in golang?

Running this program will cause it to panic when I try to get the value of a private field via reflection.

How do I know the field is private and skip it?

The Golang version is 1.16.13.





Aucun commentaire:

Enregistrer un commentaire