starsz opened a new issue #866:
URL: https://github.com/apache/apisix-dashboard/issues/866


   # 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.
   
   1. Create a file, named `version.go` and write the current version in this 
file.
   
   2. 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.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to