version

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

nolint: gochecknoglobals

Index

Constants

This section is empty.

Variables

View Source
var (
	Vcs       = ""
	Timestamp = ""
	Hostname  = ""
)

Additional Regal metadata to be injected at build time.

View Source
var Version = ""

Version stores the version of Regal and is injected at build time.

Functions

This section is empty.

Types

type Info

type Info struct {
	Version string `json:"version"`

	GoVersion string `json:"go_version"`

	Platform string `json:"platform"`

	Commit    string `json:"commit"`
	Timestamp string `json:"timestamp"`
	Hostname  string `json:"hostname"`
}

Info wraps the various version metadata values and provides a means of marshalling as JSON or pretty string.

func New

func New() Info

func (Info) String

func (vi Info) String() string

Jump to

Keyboard shortcuts

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