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
|
### The "Version" package
|
||||||
=============
|
-------------
|
||||||
This package provides --version flag feature to your cli.
|
This package provides --version flag feature to your cli.
|
||||||
It recognize both short and long flags. Version number is
|
It recognize both short and long flags. Version number is
|
||||||
automatically added from the latest tag in your git repo.
|
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
|
```shell
|
||||||
go get code.foilhatguy.casa/pub/version
|
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:
|
tools.go:
|
||||||
```go
|
```go
|
||||||
// +build tools
|
// +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**
|
tag from your project. Then it will generate a **version.go**
|
||||||
file as a part of the main package. It will contain a version
|
file as a part of the main package. It will contain a version
|
||||||
number as a constant and code for --version flag detection.
|
number as a constant and code for --version flag detection.
|
||||||
|
|
||||||
5. Build and run your application with the --version flag.
|
5. Build and run your application with the --version flag.
|
||||||
```shell
|
```shell
|
||||||
go run . --version
|
go run . --version
|
||||||
|
|
Loading…
Add table
Reference in a new issue