version

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package version exposes build metadata injected at link time.

Release builds set these with:

-ldflags "-X github.com/marvinli001/edgeweir-node/internal/version.Version=... \
          -X github.com/marvinli001/edgeweir-node/internal/version.Commit=... \
          -X github.com/marvinli001/edgeweir-node/internal/version.Date=..."

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the semantic version of the agent, "dev" for local builds.
	Version = "dev"
	// Commit is the full git commit hash the binary was built from.
	Commit = "none"
	// Date is the commit date (RFC 3339) of the build, kept stable for
	// reproducible builds.
	Date = "unknown"
)

These variables are overwritten by the linker in release builds.

Functions

func String

func String() string

String returns a single human-readable line describing the build.

Types

This section is empty.

Jump to

Keyboard shortcuts

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