version

package
v0.0.0-...-46f3b6c Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package version holds the global version information for the application.

Index

Constants

This section is empty.

Variables

View Source
var (
	// internal identifier for logs and such; lowercase, no spaces
	Id = "urn"

	// display name for application; can have case and spaces
	Name = "URN persistent identifier service"

	// commit tag
	Tag = ""

	// commit hash
	Hash = ""

	// commit branch
	Branch = ""

	// source repository URL
	Repo = ""

	// version number; really just Tag without leading 'v'
	Version = func() string {
		if Tag == "" {
			return "0.0.0"
		}
		if len(Tag) > 1 && Tag[0] == 'v' && Tag[1] >= '0' && Tag[1] <= '9' {
			return Tag[1:]
		}
		return Tag
	}()
)

Most of these variables are set by the Go linker; do not edit by hand

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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