goversion

package
v1.1.4 Latest Latest
Warning

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

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

Documentation

Overview

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

This is a copy of rsc.io/goversion/version. We renamed the package to goversion to differentiate between version package in standard library that we also use.

Index

Constants

This section is empty.

Variables

View Source
var DebugMatch bool

Functions

This section is empty.

Types

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(file string) (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
JackTT - Gopher 🇻🇳