build

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadBuildInfo

func ReadBuildInfo()

ReadBuildInfo reads the "VERSION" file and parses the version numbers from it. This function should be called when the binary is executed to make the build information available to the rest of the application.

Types

type BuildInfo

type BuildInfo struct {
	MajorVersion, MinorVersion int
}
var Info *BuildInfo = nil

Info is the binary's build information that's globally available to the application. This is set by the ReadBuildInfo function and will be nil before the function is called.

Jump to

Keyboard shortcuts

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