version

package
v1.8.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	*debug.BuildInfo
	ApplicationVersion string `json:"version"`
}

Info contains compile time info about build binaries.

This currently takes the BuildInfo from the debug.BuildInfo and the application version added by mage.

func Get

func Get() Info

Get Info for the current runtime.

func (Info) Write added in v1.8.1

func (i Info) Write(out io.Writer) error

Write the given version Info to parameter out. Returns any errors the writer returns.

Jump to

Keyboard shortcuts

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