binary

package
v0.51.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnrecognizedExe = xerrors.New("unrecognized executable format")
	ErrNonGoBinary     = xerrors.New("non go binary")
)

Functions

func NewParser

func NewParser() types.Parser

Types

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func (*Parser) Parse

func (p *Parser) Parse(r xio.ReadSeekerAt) ([]types.Library, []types.Dependency, error)

Parse scans file to try to report the Go and module versions.

func (*Parser) ParseLDFlags added in v0.51.0

func (p *Parser) ParseLDFlags(name string, flags []string) string

ParseLDFlags attempts to parse the binary's version from any `-ldflags` passed to `go build` at build time.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL