-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3c6d811
commit 15a556a
Showing
3 changed files
with
57 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Apache License 2.0. | ||
* See the file "LICENSE" for details. | ||
*/ | ||
|
||
// Package vc provides buildtime information. | ||
package vc | ||
|
||
var ( | ||
// The following variables are going to be set at link time using ldflags | ||
// and can be referenced later in the program. | ||
|
||
// revision of the service | ||
revision = "" | ||
// buildTimestamp, timestamp of the build | ||
buildTimestamp = "" | ||
// version in vX.Y.Z{-N-abbrev} format (via git-describe --tags) | ||
version = "" | ||
) | ||
|
||
// Revision of the service. | ||
func Revision() string { | ||
return revision | ||
} | ||
|
||
// BuildTimestamp returns the timestamp of the build. | ||
func BuildTimestamp() string { | ||
return buildTimestamp | ||
} | ||
|
||
// Version in vX.Y.Z{-N-abbrev} format. | ||
func Version() string { | ||
return version | ||
} |