buildinfo

package
Version: v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuildDate string

BuildDate set by linker with `-X` flag

View Source
var CommitHash string

CommitHash set by linker with `-X` flag

Functions

func VersionString

func VersionString() string

VersionString returns a string represents version and os info

Types

type Version

type Version struct {
	// Major version increment for backwards-incompatible changes.
	Major int
	// Minor version increment for new features.
	Minor int
	// Patch version increment for bug fixes.
	Patch int
}

Version semantic

func (Version) String

func (v Version) String() string

String interface

Source Files

Jump to

Keyboard shortcuts

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