Skip to content

Commit

Permalink
docs: vitotrol installation changed since go 1.18
Browse files Browse the repository at this point in the history
Closes #13.

Signed-off-by: Maxime Soulé <btik-git@scoubidou.com>
  • Loading branch information
maxatome committed May 27, 2022
1 parent b1535ae commit 4d917c2
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4d917c2

Please sign in to comment.