Closed
Description
Feature request
Please describe your feature
Hi, I think manager-api needs version info.
Like: ./manager-api version
And when manager-api
start, show the manager-api version.
releated #853
Describe the solution you'd like
In golang, there are some ways to manage version.
-
Create a file, named
version.go
and write the current version in this file. -
Use go build ldflags. Such as
go build -ldflags "-X main.VERSION=1.0.0 -X 'main.BUILD_TIME=date' -X 'main.GO_VERSION=go version'"
We can add this into Makefile.
I prefer the second solution.