I am doing an inventory of all log statements in my Go application. Since the log statements will contain just variable names, a simple grep is not of use. I want to identify the variable "type" in each log statement and if its a struct, the field names in that struct. I want to write a script to do this.
Is it possible to extract such information using reflections or by any other means in Go?
Aucun commentaire:
Enregistrer un commentaire