Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version: make GetTegs() public #565

Merged
merged 1 commit into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions version/info.go
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func GetRevision() string {
return computedRevision
}

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

Expand Down
Loading