To be more specific, 

ast.TypeSpec.Name.Name is, I think, what you are after.

See https://pkg.go.dev/go/ast#TypeSpec

And the TypeSpec are found in the ast.File.Decls, after type switching in 
the manner of getast.go#360

https://pkg.go.dev/go/ast#File

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/01c4a98c-30f4-4cd6-bc7f-a7edf781641an%40googlegroups.com.

Reply via email to