version

package
v0.0.0-...-085a19f Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Module is the fx module for the version package

Functions

func PrintVersion

func PrintVersion()

PrintVersion prints the version information

func RegisterVersionHooks

func RegisterVersionHooks(lc fx.Lifecycle, logger *slog.Logger, version *Version)

RegisterVersionHooks registers the version hooks

func Set

func Set(version, date, commit string)

Set sets the version information

Types

type Version

type Version struct {
	Version string
	Date    string
	Commit  string
}

Version contains app version information

func NewVersion

func NewVersion() *Version

NewVersion returns a new version struct

func (*Version) String

func (s *Version) String() string

String returns a string representation of the version

Jump to

Keyboard shortcuts

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