version

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package version holds build version metadata for the agent binary.

Index

Constants

This section is empty.

Variables

View Source
var Version = "0.0.0-dev"

Version is the semantic version. Override at build time with:

go build -ldflags "-X github.com/ionalpha/flynn/internal/version.Version=v0.1.0" ./cmd/flynn

Functions

func IsDev

func IsDev() bool

IsDev reports whether this is an unstamped development build (no release version linked in). A dev build keeps its durable state apart from a release build's, so an in-progress schema change on a branch never touches a real installation. A build installed with `go install ...@<version>` is a real release, not a dev build.

func String

func String() string

String returns a human-readable version: the release version when one is present, otherwise the source default with the VCS revision appended when the binary was built from a git checkout.

Types

This section is empty.

Jump to

Keyboard shortcuts

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