buildmeta

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PseudoVersionRevision added in v1.13.0

func PseudoVersionRevision(moduleVersion string) string

PseudoVersionRevision extracts the VCS revision from a Go pseudo-version (vX.Y.Z-0.yyyymmddhhmmss-abcdefabcdef). Returns "" for anything else. Exported because pkg/cli needs it against a DEP's module version, not only the main module's that Resolve handles.

func Resolve

func Resolve(stampedVersion, stampedCommit string, info *debug.BuildInfo) (string, string)

Resolve fills missing let-go version/commit metadata from Go build info. Explicit ldflag-stamped values always take precedence.

Types

This section is empty.

Jump to

Keyboard shortcuts

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