Skip to content

Commit 057720a

Browse files
author
wuxianrong
committed
code format
1 parent 5c5d89d commit 057720a

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

codis/pkg/utils/version.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package utils
22

33
const (
4-
Version = "2018-11-04 16:22:35 +0800 @de1ad026e329561c22e2a3035fbfe89dc7fef764 @3.2.2-12-gde1ad026"
5-
Compile = "2023-02-23 11:25:09 +0800 by go version go1.19.6 linux/amd64"
4+
Version = "3.5.4"
5+
Gitsha = "5c5d89d5478138d64bd071840beab30a64105075"
6+
Compile = "2025-03-26 11:30:14 CST"
7+
GoVersion = "go1.23.4 darwin/amd64"
68
)

tools/pika_exporter/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ cat << EOF | gofmt > version.go
1717
package main
1818

1919
const (
20-
20+
PikaExporterVersion = "$(PIKA_EXPORTER_MAJOR).$(PIKA_EXPORTER_MINOR).$(PIKA_EXPORTER_PATCH)"
2121
BuildVersion = "$(BRANCH)"
2222
BuildCommitSha = "$(GITREV)"
2323
BuildDate = "$(BUILDTIME)"

tools/pika_exporter/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ func main() {
5656
flag.Parse()
5757

5858
log.Println("Pika Metrics Exporter")
59+
log.Println("Pika Exporter Version: ", PikaExporterVersion)
5960
log.Println("Build Date: ", BuildDate)
6061
log.Println("Commit SHA: ", BuildCommitSha)
6162
log.Println("Go Version: ", GoVersion)

0 commit comments

Comments
 (0)