version

package
v0.2.34 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 5 Imported by: 17

Documentation

Overview

Package version contains build information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(w http.ResponseWriter, _ *http.Request)

Handler serves version information with HTTP.

Types

type Information

type Information struct {
	Version      string            `json:"version,omitempty"`
	Revision     string            `json:"revision,omitempty"`
	Branch       string            `json:"branch,omitempty"`
	BuildUser    string            `json:"build_user,omitempty"`
	BuildDate    string            `json:"build_date,omitempty"`
	GoVersion    string            `json:"go_version,omitempty"`
	Dependencies map[string]string `json:"dependencies,omitempty"`
}

Information holds app version info.

func Info

func Info() Information

Info returns app version info.

func Module added in v0.2.28

func Module(path string) Information

Module returns module version info.

func (Information) String

func (i Information) String() string

String return version information as string.

func (Information) Values

func (i Information) Values() map[string]string

Values return version information as string map.

Jump to

Keyboard shortcuts

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