version

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package version parses semantic versions and checks for update availability.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckKeyAge

func CheckKeyAge(sessionID string) string

CheckKeyAge builds a nudge when the encryption key is older than the configured rotation threshold.

Parameters:

  • sessionID: current session identifier

Returns:

  • string: formatted nudge box (with leading newline), or empty string

func ParseMajorMinor

func ParseMajorMinor(ver string) (major, minor int, ok bool)

ParseMajorMinor extracts major and minor version numbers from a semver string like "1.2.3". Returns ok=false for unparseable versions.

Parameters:

  • ver: version string in semver format

Returns:

  • major: major version number
  • minor: minor version number
  • ok: true if parsing succeeded

Types

This section is empty.

Jump to

Keyboard shortcuts

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