From 02dab399073cc4fa06d9d049f8d3e9d44457d560 Mon Sep 17 00:00:00 2001 From: Foil-hat-guy Date: Sun, 20 Apr 2025 12:17:36 +0300 Subject: [PATCH] Fixed some typos in README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c7cfc0e..d8f3a8e 100644 --- a/README.md +++ b/README.md @@ -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