version

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package version provides version information for Ralph.

Version information is set at build time using ldflags:

go build -ldflags "-X github.com/patbaumgartner/copilot-ralph/pkg/version.Version=1.0.0"

When built via "go install" (no ldflags), the module version embedded by the Go toolchain is read from runtime/debug.ReadBuildInfo as a fallback.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the semantic version number
	Version = "dev"

	// Commit is the git commit hash
	Commit = "unknown"

	// BuildDate is the build timestamp
	BuildDate = "unknown"

	// GoVersion is the Go version used to build
	GoVersion = "unknown"
)

Build-time variables set via ldflags

Functions

This section is empty.

Types

type Info

type Info struct {
	Version   string
	Commit    string
	BuildDate string
	GoVersion string
}

Info contains version information

func Get

func Get() Info

Get returns the version information

Jump to

Keyboard shortcuts

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