Help us shape the future of Go! Take the 2026 Go Developer Survey

constant

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package constant holds values that are shared across the CLI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Version

func Version() string

Version is the version ohmyssh reports.

There are three answers, in order of preference. What the build injected is the release version, and is what a binary from the Makefile has. Otherwise the module's own version is used, which is how a `go install ...@v1.2.3` build knows what it is — the reason a built-in constant was wrong, since that binary would have reported the version it was written with rather than the one it was built from. Anything else is a working copy, which has no released version and says so by reporting the development one; Go's own marker for that, "(devel)", is not a version worth showing anyone.

Types

This section is empty.

Jump to

Keyboard shortcuts

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