proc

package
v0.8.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrVersionNotFound = errors.New("version info not found")

ErrVersionNotFound is returned when we can't find Go version info from a binary

Functions

This section is empty.

Types

type GoVersion

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

GoVersion represents Go toolchain version that a binary is built with.

func ExtraceGoVersion

func ExtraceGoVersion(path string) (*GoVersion, error)

ExtraceGoVersion extracts Go version info from a binary that is built with Go toolchain

func (*GoVersion) After

func (v *GoVersion) After(major, minor int) bool

After returns true if it is greater than major.minor

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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