Yes, there is some information that is written by the linker in the final data section of the binary, the itab, that is the interface table for the dynamic dispatching. AFAIK, it is done there because you need to know other packages structs and interfaces to have the whole picture and build that table, and that happens using the build cache.
froh|15 days ago
the interface table computation is a golang speciality, a fascinating one.
and the implementation of interface magic is disturbingly not mentioned in the article.