constants

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const BODY_GUTTER_WIDTH = 2

BODY_GUTTER_WIDTH is the blank tier-2 column rendered between the two body panels so they don't touch. It is subtracted from the row before the panels are sized, so the gutter never pushes the layout past the terminal width.

View Source
const LEFT_PANEL_WIDTH float32 = 0.33

LEFT_PANEL_WIDTH is set to lazydocker's default sidebar width (one-third of the terminal) so the service/group list is readable without overwhelming the details panel.

View Source
const MIN_PANEL_WIDTH = 30
View Source
const RIGHT_PANEL_WIDTH float32 = 1 - LEFT_PANEL_WIDTH

RIGHT_PANEL_WIDTH is kept for reference only. The right panel is sized as the remainder of the body row (see AppModel.calculateBodyLayout) rather than as an independent fraction of the terminal, so that left + gutter + right == terminal width exactly.

Variables

View Source
var APP_NAME = "Cais"
View Source
var SLOGAN = "Nothing to sew here."
View Source
var WORDMARK = "▌ Cais"

WORDMARK is the one-line badge rendered in the main menu bar.

Functions

func Version

func Version() string

Version reports the running build's version.

A stamped value wins - that is a release, and it says so. Otherwise the build info answers, and which half of it answers sorts the two remaining cases cleanly:

  • Built from a checkout: there is a vcs.revision, so the short commit is the version. The toolchain also synthesizes a v0.0.0-<date>-<hash> pseudo-version here, which says the same thing at three times the length and reads like a release that never existed.
  • Installed with `go install ...@v0.1.0`: a module download has no VCS info at all, so Main.Version is the only answer, and it is the right one.

Types

This section is empty.

Jump to

Keyboard shortcuts

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