version

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package version reports which build of Zelie is running.

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version is set at release time with -ldflags "-X ...version.Version=v1.2.3". Local builds keep the default.

Functions

This section is empty.

Types

type Info

type Info struct {
	Version  string
	Commit   string
	Modified bool
	Go       string
	Platform string
}

Info describes the running binary.

func Get

func Get() Info

Get returns the build information. The commit comes from the VCS data that the Go toolchain embeds, so it is correct even for local builds.

func (Info) String

func (i Info) String() string

Jump to

Keyboard shortcuts

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