Update installation cmd on README for go1.16+ (#147)
This commit is contained in:
parent
126389e52f
commit
e7d0d3b298
11
README.md
11
README.md
@ -14,11 +14,20 @@ You can read more in the [Meet Moq blog post](http://bit.ly/meetmoq).
|
|||||||
|
|
||||||
### Installing
|
### Installing
|
||||||
|
|
||||||
To start using Moq, just run go get:
|
To start using latest released version of Moq, just run:
|
||||||
|
|
||||||
|
#### Go version < 1.16
|
||||||
|
|
||||||
```
|
```
|
||||||
$ go get github.com/matryer/moq
|
$ go get github.com/matryer/moq
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Go 1.16+
|
||||||
|
|
||||||
|
```
|
||||||
|
$ go install github.com/matryer/moq@latest
|
||||||
|
```
|
||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user