Fixed some typos in README.md
This commit is contained in:
parent
c170fd46b3
commit
02dab39907
1 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
### The "Version" package
|
||||
=============
|
||||
-------------
|
||||
This package provides --version flag feature to your cli.
|
||||
It recognize both short and long flags. Version number is
|
||||
automatically added from the latest tag in your git repo.
|
||||
|
@ -9,7 +9,7 @@ automatically added from the latest tag in your git repo.
|
|||
```shell
|
||||
go get code.foilhatguy.casa/pub/version
|
||||
```
|
||||
2. Add the package as a tool dependency to your project,
|
||||
2. Add the package as a tool dependency to your project in
|
||||
tools.go:
|
||||
```go
|
||||
// +build tools
|
||||
|
@ -32,6 +32,7 @@ The package will detect a version number from the latest git
|
|||
tag from your project. Then it will generate a **version.go**
|
||||
file as a part of the main package. It will contain a version
|
||||
number as a constant and code for --version flag detection.
|
||||
|
||||
5. Build and run your application with the --version flag.
|
||||
```shell
|
||||
go run . --version
|
||||
|
|
Loading…
Add table
Reference in a new issue