Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit a5582fc

Browse files
authored
add docs on 1.16 install and adding to PATH (#534)
Fixes: #490
1 parent 6ff1070 commit a5582fc

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,23 @@ contexts too.
1010

1111
Once you have [installed Go][golang-install], install the `mockgen` tool.
1212

13+
**Note**: If you have not done so already be sure to add `$GOPATH/bin` to your
14+
`PATH`.
15+
1316
To get the latest released version use:
1417

18+
### Go version < 1.16
19+
1520
```bash
1621
GO111MODULE=on go get github.com/golang/mock/[email protected]
1722
```
1823

24+
### Go 1.16+
25+
26+
```bash
27+
go install github.com/golang/mock/[email protected]
28+
```
29+
1930
If you use `mockgen` in your CI pipeline, it may be more appropriate to fixate
2031
on a specific mockgen version.
2132

0 commit comments

Comments
 (0)