internal

package
v0.0.0-...-080eb72 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Version

func Version(linkerVersion string) string

Version reports the version of the main package of the binary.

As of Go 1.21, we still need to use two different approaches to be able to report version information: 1. to support "go build", we must use the linker. 2. to support "go install with remote path", we must use the `debug` package. 3. as far as I understand it, "go install with local path" does not work. See https://github.com/golang/go/issues/50603, to be able to use the `debug` package for all use cases.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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