Skip to content

Commit

Permalink
version: make GetTegs() public (#565)
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
  • Loading branch information
ArthurSens committed Jan 12, 2024
1 parent 21a37ca commit 53f76e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions version/info.go
Expand Up @@ -53,7 +53,7 @@ func NewCollector(program string) prometheus.Collector {
"goversion": GoVersion,
"goos": GoOS,
"goarch": GoArch,
"tags": getTags(),
"tags": GetTags(),
},
},
func() float64 { return 1 },
Expand Down Expand Up @@ -81,7 +81,7 @@ func Print(program string) string {
"buildDate": BuildDate,
"goVersion": GoVersion,
"platform": GoOS + "/" + GoArch,
"tags": getTags(),
"tags": GetTags(),
}
t := template.Must(template.New("version").Parse(versionInfoTmpl))

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

// BuildContext returns goVersion, platform, buildUser and buildDate information.
func BuildContext() string {
return fmt.Sprintf("(go=%s, platform=%s, user=%s, date=%s, tags=%s)", GoVersion, GoOS+"/"+GoArch, BuildUser, BuildDate, getTags())
return fmt.Sprintf("(go=%s, platform=%s, user=%s, date=%s, tags=%s)", GoVersion, GoOS+"/"+GoArch, BuildUser, BuildDate, GetTags())
}
2 changes: 1 addition & 1 deletion version/info_go118.go
Expand Up @@ -30,7 +30,7 @@ func GetRevision() string {
return computedRevision
}

func getTags() string {
func GetTags() string {
return computedTags
}

Expand Down

0 comments on commit 53f76e7

Please sign in to comment.