version

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package version represents the current version of the project.

It is about the version of the tool and not the semver version implementation used by this tool.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildInfo

type BuildInfo struct {
	// Version is the current semver.
	Version string `json:"version,omitempty"`
	// GitCommit is the git sha1.
	GitCommit string `json:"gitCommit,omitempty"`
	// GitTreeState is the state of the git tree.
	// It is either clean or dirty.
	GitTreeState string `json:"gitTreeState,omitempty"`
	// BuildDate is the build date.
	BuildDate string `json:"buildDate,omitempty"`
	// GoVersion is the version of the Go compiler used.
	GoVersion string `json:"goVersion,omitempty"`
	// Compiler is the go compiler that built gsemver.
	Compiler string `json:"compiler,omitempty"`
	// Platform is the OS on which it is running.
	Platform string `json:"platform,omitempty"`
}

BuildInfo describes the compile time information.

Jump to

Keyboard shortcuts

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