version

package
v0.0.63 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package version provides utilities for extracting build and dependency information

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEVEVersion

func GetEVEVersion() string

GetEVEVersion returns the version of the EVE module being used Returns "unknown" if EVE is not found in dependencies or running in dev mode

Types

type BuildInfo

type BuildInfo struct {
	GoVersion    string           `json:"goVersion"`
	MainModule   string           `json:"mainModule"`
	MainVersion  string           `json:"mainVersion"`
	Dependencies []DependencyInfo `json:"dependencies"`
}

BuildInfo contains build-time information

func GetBuildInfo

func GetBuildInfo() *BuildInfo

GetBuildInfo extracts build information from the current binary This uses runtime/debug to get module information embedded at build time

type DependencyInfo

type DependencyInfo struct {
	Path    string `json:"path"`
	Version string `json:"version"`
	Replace string `json:"replace,omitempty"` // If module is replaced
}

DependencyInfo represents a module dependency and its version

func GetDependency

func GetDependency(modulePath string) *DependencyInfo

GetDependency returns version information for a specific dependency

Jump to

Keyboard shortcuts

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