Source File
support.go
Belonging Package
golang.org/x/tools/internal/gcimporter
// Copyright 2024 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package gcimporter
import (
)
// Copy of $GOROOT/src/cmd/internal/archive.ReadHeader.
func ( *bufio.Reader, string) int {
// architecture-independent object file output
const = 60
var []byte
if , := io.ReadFull(, [:]); != nil {
return -1
}
:= strings.Trim(string([0:16]), " ")
if !strings.HasPrefix(, ) {
return -1
}
:= strings.Trim(string([48:58]), " ")
, := strconv.Atoi()
return
}
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)