version

package
v0.0.5 Latest Latest
Warning

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

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

Documentation

Overview

Package version provides build version information, injected via ldflags.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	GitVersion string
	GitCommit  string
	BuildDate  string
	GoVersion  string
	Compiler   string
	Platform   string
}

Info holds version metadata.

func Get

func Get() *Info

Get returns the current build info.

func (*Info) String

func (i *Info) String() string

String returns a single-line version string carrying all build metadata.

func (*Info) ToJSON

func (i *Info) ToJSON() string

ToJSON returns the info as JSON.

Jump to

Keyboard shortcuts

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