version

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Version

type Version[T config.Config] struct {
	// contains filtered or unexported fields
}

func New

func New[T config.Config](gitCommit string, goVersion string, platform string, version string, buildDate string) *Version[T]

func (*Version[T]) BuildDate

func (v *Version[T]) BuildDate() string

func (*Version[T]) Cmd

func (v *Version[T]) Cmd(ch *cmdutils.Helper[T], cli string) *cobra.Command

func (*Version[T]) Format

func (v *Version[T]) Format(cli string) string

func (*Version[T]) GitCommit

func (v *Version[T]) GitCommit() string

func (*Version[T]) GoVersion

func (v *Version[T]) GoVersion() string

func (*Version[T]) Platform

func (v *Version[T]) Platform() string

func (*Version[T]) Version

func (v *Version[T]) Version() string

Jump to

Keyboard shortcuts

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