func readGopackHeader(r *bufio.Reader) (name string, size int64, err error) { … } // FindExportData positions the reader r at the beginning of the // export data section of an underlying GC-created object/archive // file by reading from it. The reader must be positioned at the // start of the file before calling this function. The hdr result // is the string before the export data, either "$$" or "$$B". // The size result is the length of the export data in bytes, or -1 if not known. func FindExportData(r *bufio.Reader) (hdr string, size int64, err error) { … }