Skip to content

Commit

Permalink
Add README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
chenlujjj committed Jan 1, 2022
1 parent b68d3b2 commit 9779a4a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# goversion

本仓库提供代码示例,展示如何给Go程序附加上版本信息。

```shell
$ 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
```

0 comments on commit 9779a4a

Please sign in to comment.