From 4d917c285ac506c2578a6880a3df516b846c00e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20Soul=C3=A9?= Date: Thu, 26 May 2022 07:53:42 +0200 Subject: [PATCH] docs: vitotrol installation changed since go 1.18 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #13. Signed-off-by: Maxime Soulé --- README.md | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9adddae..38fdd28 100644 --- a/README.md +++ b/README.md @@ -25,17 +25,29 @@ Any pull-request is welcome. ## Install -The library: +### The `vitotrol` command + +To obtain a `vitotrol` executable in `$GOPATH/bin/` directory if +`GOPATH` environment variable exists or in `$HOME/go/bin` otherwise: + +#### starting go 1.18 + ``` -go get -u github.com/maxatome/go-vitotrol +go install github.com/maxatome/go-vitotrol/cmd/vitotrol@master ``` -The vitotrol command: +#### before go 1.18 + ``` go get -u github.com/maxatome/go-vitotrol/cmd/vitotrol ``` -resulting a `vitotrol` executable in `$GOPATH/bin/` directory. +### The library +``` +go get -u github.com/maxatome/go-vitotrol +``` + +`-u` became useless since go 1.18. ## Example