Skip to content

Commit 53f76e7

Browse files
authored
version: make GetTegs() public (#565)
Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
1 parent 21a37ca commit 53f76e7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

version/info.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func NewCollector(program string) prometheus.Collector {
5353
"goversion": GoVersion,
5454
"goos": GoOS,
5555
"goarch": GoArch,
56-
"tags": getTags(),
56+
"tags": GetTags(),
5757
},
5858
},
5959
func() float64 { return 1 },
@@ -81,7 +81,7 @@ func Print(program string) string {
8181
"buildDate": BuildDate,
8282
"goVersion": GoVersion,
8383
"platform": GoOS + "/" + GoArch,
84-
"tags": getTags(),
84+
"tags": GetTags(),
8585
}
8686
t := template.Must(template.New("version").Parse(versionInfoTmpl))
8787

@@ -99,5 +99,5 @@ func Info() string {
9999

100100
// BuildContext returns goVersion, platform, buildUser and buildDate information.
101101
func BuildContext() string {
102-
return fmt.Sprintf("(go=%s, platform=%s, user=%s, date=%s, tags=%s)", GoVersion, GoOS+"/"+GoArch, BuildUser, BuildDate, getTags())
102+
return fmt.Sprintf("(go=%s, platform=%s, user=%s, date=%s, tags=%s)", GoVersion, GoOS+"/"+GoArch, BuildUser, BuildDate, GetTags())
103103
}

version/info_go118.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func GetRevision() string {
3030
return computedRevision
3131
}
3232

33-
func getTags() string {
33+
func GetTags() string {
3434
return computedTags
3535
}
3636

0 commit comments

Comments
 (0)