version

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package version provides information about the build

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   = undefined
	Branch    = undefined
	Commit    = undefined
	BuildDate = undefined
)

Values are set by compile time -ldflags

Functions

This section is empty.

Types

type Info

type Info struct {
	Version   string
	Branch    string
	Commit    string
	BuildDate time.Time
	GoVersion string
	Platform  string
}

Info contains build information supplied during compile time

func Get

func Get() Info

Get returns the built-in version and platform information

Jump to

Keyboard shortcuts

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