version

package
v0.32.3 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadVersion

func ReadVersion(path string) string

ReadVersion takes a string path as an argument and returns a string in the format "path@version". It does this by reading the build info once (cached) and iterating through the Dependencies slice of the BuildInfo struct. If it finds a match for the given path, it will return a string with the path and version number joined by an '@' character. If no match is found, it will simply return the path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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