ddollar / foreman

Manage Procfile-based applications
http://ddollar.github.com/foreman
MIT License
6.03k stars 633 forks source link

Version Optimize #790

Closed zjzjzjzj1874 closed 1 year ago

zjzjzjzj1874 commented 1 year ago

There is no doubt that putting the version in the main.go function will work. However, it is even better to put the version in a static file.

Additionally, when retrieving the version, there is no need for any other packages; simply using the cat command is sufficient.