From a4c3830c2c53502598ea887218aa8c2cf0990eb5 Mon Sep 17 00:00:00 2001 From: Vitaly Zdanevich Date: Sat, 14 May 2022 21:35:03 +0300 Subject: [PATCH 1/2] PATH add example --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a4213e50..8ac898c3 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,9 @@ contexts too. Once you have [installed Go][golang-install], install the `mockgen` tool. **Note**: If you have not done so already be sure to add `$GOPATH/bin` to your -`PATH`. +`PATH`, for example on Linux add to your `~/.bashrc`: +`export PATH="/home/$USER/go/bin:$PATH"` +Full path - with tilde will not work. To get the latest released version use: From d298542dc4bc04414a8e555e9d493ef95b199b1d Mon Sep 17 00:00:00 2001 From: Vitaly Zdanevich Date: Sat, 14 May 2022 22:41:47 +0400 Subject: [PATCH 2/2] README: PATH: add about tilde at `go generate` case --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8ac898c3..a25c91e9 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Once you have [installed Go][golang-install], install the `mockgen` tool. **Note**: If you have not done so already be sure to add `$GOPATH/bin` to your `PATH`, for example on Linux add to your `~/.bashrc`: `export PATH="/home/$USER/go/bin:$PATH"` -Full path - with tilde will not work. +Full path - with tilde will not work for some cases, for example when run from `go generate`. To get the latest released version use: