info

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGoVersion

func GetGoVersion() string

GetGoVersion returns the current Go runtime version as a string.

func PrintVersion

func PrintVersion(w io.Writer)

PrintVersion prints the current version of the tool to the provided writer.

Types

type Version

type Version struct {
	Major     string
	Minor     string
	Patch     string
	GoVersion string
}

Version represents the version information of the tool, including the major, minor, and patch versions, as well as the Go runtime version.

func BuildCurrentVersion

func BuildCurrentVersion() Version

BuildCurrentVersion builds and returns the current Version of the tool.

Jump to

Keyboard shortcuts

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