version

package
v3.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Overview

Package version implements version handling code.

Index

Constants

This section is empty.

Variables

View Source
var Components []byte

Components is used to store files sha256

Functions

func ParseFilesSha256

func ParseFilesSha256(componentsJSON []byte) (map[string]map[string]map[string]string, error)

ParseFilesSha256 Load files' sha256 from components.json

Types

type Info

type Info struct {
	Major        string `json:"major,omitempty"`
	Minor        string `json:"minor,omitempty"`
	GitVersion   string `json:"gitVersion,omitempty"`
	GitCommit    string `json:"gitCommit,omitempty"`
	GitTreeState string `json:"gitTreeState,omitempty"`
	BuildDate    string `json:"buildDate,omitempty"`
	GoVersion    string `json:"goVersion,omitempty"`
	Compiler     string `json:"compiler,omitempty"`
	Platform     string `json:"platform,omitempty"`
}

Info exposes information about the version used for the current running code.

func Get

func Get() Info

Get returns an Info object with all the information about the current running code.

func (Info) String

func (info Info) String() string

String returns info as a human-friendly version string.

Jump to

Keyboard shortcuts

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