Skip to content

Commit ed7813e

Browse files
committed
add tags for version.Info
1 parent b70e59e commit ed7813e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pbm/version/version.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ var (
2424
buildTime string
2525
)
2626

27-
type Info struct { //nolint:musttag
28-
Version string
29-
Platform string
30-
GitCommit string
31-
GitBranch string
32-
BuildTime string
33-
GoVersion string
27+
type Info struct {
28+
Version string `json:"Version"`
29+
Platform string `json:"Platform"`
30+
GitCommit string `json:"GitCommit"`
31+
GitBranch string `json:"GitBranch"`
32+
BuildTime string `json:"BuildTime"`
33+
GoVersion string `json:"GoVersion"`
3434
}
3535

3636
const plain = `Version: %s

0 commit comments

Comments
 (0)