version

package
v1.2.1-progress1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2022 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Overview

Package version reports the Go version used to build program executables.

Index

Constants

This section is empty.

Variables

View Source
var DebugMatch bool

Functions

This section is empty.

Types

type ReaderAtCloser

type ReaderAtCloser interface {
	io.ReaderAt
	io.Closer
}

type Version

type Version struct {
	Release        string // Go version (runtime.Version in the program)
	ModuleInfo     string // program's module information
	BoringCrypto   bool   // program uses BoringCrypto
	StandardCrypto bool   // program uses standard crypto (replaced by BoringCrypto)
	FIPSOnly       bool   // program imports "crypto/tls/fipsonly"
}

Version is the information reported by ReadExe.

func ReadExe

func ReadExe(filepath string) (Version, error)

func ReadExeReader

func ReadExeReader(reader ReaderAtCloser) (Version, error)

ReadExe reports information about the Go version used to build the program executable named by file.

Jump to

Keyboard shortcuts

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