package buildid
import "cmd/internal/buildid"
Index ¶
- func FindAndHash(r io.Reader, id string, bufSize int) (matches []int64, hash [32]byte, err error)
- func ReadELFNote(filename, name string, typ int32) ([]byte, error)
- func ReadFile(name string) (id string, err error)
- func Rewrite(w io.WriterAt, pos []int64, id string) error
Functions ¶
func FindAndHash ¶
FindAndHash reads all of r and returns the offsets of occurrences of id. While reading, findAndHash also computes and returns a hash of the content of r, but with occurrences of id replaced by zeros. FindAndHash reads bufSize bytes from r at a time. If bufSize == 0, FindAndHash uses a reasonable default.
func ReadELFNote ¶
func ReadFile ¶
ReadFile reads the build ID from an archive or executable file.
func Rewrite ¶
Source Files ¶
- Version
- v1.11.13
- Published
- Aug 13, 2019
- Platform
- js/wasm
- Imports
- 10 packages
- Last checked
- 1 minute ago –
Tools for package owners.