42 lines
1.3 KiB
Go
42 lines
1.3 KiB
Go
// Package indra is the root level package for Indranet, a low latency,
|
|
// Lightning Network monetised distributed VPN protocol designed for providing
|
|
// strong anonymity to valuable internet traffic.
|
|
package indra
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
var (
|
|
// URL is the git URL for the repository.
|
|
URL = "github.com/Indra-Labs/indra"
|
|
// GitRef is the gitref, as in refs/heads/branchname.
|
|
GitRef = "refs/heads/main"
|
|
// ParentGitCommit is the commit hash of the parent HEAD.
|
|
ParentGitCommit = "5e6c6fa0365dfb494c0a8e9c99d557cd7eb331df"
|
|
// BuildTime stores the time when the current binary was built.
|
|
BuildTime = "2022-12-21T14:55:59Z"
|
|
// SemVer lists the (latest) git tag on the build.
|
|
SemVer = "v0.0.209"
|
|
// PathBase is the path base returned from runtime caller.
|
|
PathBase = "/home/loki/src/github.com/Indra-Labs/indra/"
|
|
// Major is the major number from the tag.
|
|
Major = 0
|
|
// Minor is the minor number from the tag.
|
|
Minor = 0
|
|
// Patch is the patch version number from the tag.
|
|
Patch = 209
|
|
)
|
|
|
|
// Version returns a pretty printed version information string.
|
|
func Version() string {
|
|
return fmt.Sprint(
|
|
"\nRepository Information\n",
|
|
"\tGit repository: "+URL+"\n",
|
|
"\tBranch: "+GitRef+"\n",
|
|
"\tParentGitCommit: "+ParentGitCommit+"\n",
|
|
"\tBuilt: "+BuildTime+"\n",
|
|
"\tSemVer: "+SemVer+"\n",
|
|
)
|
|
}
|