goversion 本仓库提供代码示例,展示如何给Go程序附加上版本信息。 $ make build $ ./main --version version 1.0.0 build user: chenluxin build date: 2022-01-01T08:09:49Z go version: go1.17 platform: darwin/amd64 git branch: master git commit: e5376223b6fa31d8893546eb77babc714dd589d0