Fixed some typos in README.md

This commit is contained in:
Foil-hat-guy 2025-04-20 12:17:36 +03:00
parent c170fd46b3
commit 02dab39907
No known key found for this signature in database
GPG key ID: 221CC305A7B23591

View file

@ -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