version

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 3 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 provides build and version information for the OCFP CLI.

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   = "dev"             //nolint:gochecknoglobals // set via ldflags at build time
	BuildTime = "unknown"         //nolint:gochecknoglobals // set via ldflags at build time
	GitCommit = "unknown"         //nolint:gochecknoglobals // set via ldflags at build time
	GoVersion = runtime.Version() //nolint:gochecknoglobals // captured at init for reporting
)

Build information set via ldflags.

Functions

This section is empty.

Types

type Info

type Info struct {
	Version   string `json:"version"`
	BuildTime string `json:"buildTime"`
	GitCommit string `json:"gitCommit"`
	GoVersion string `json:"goVersion"`
	OS        string `json:"os"`
	Arch      string `json:"arch"`
}

Info holds version information.

func Get

func Get() Info

Get returns the version information.

func (Info) Short

func (i Info) Short() string

Short returns a short version string.

func (Info) String

func (i Info) String() string

String returns a formatted version string.

Jump to

Keyboard shortcuts

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