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

Commit

Permalink
add docs on 1.16 install and adding to PATH (#534)
Browse files Browse the repository at this point in the history
Fixes: #490
  • Loading branch information
codyoss committed Feb 25, 2021
1 parent 6ff1070 commit a5582fc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Expand Up @@ -10,12 +10,23 @@ 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`.

To get the latest released version use:

### Go version < 1.16

```bash
GO111MODULE=on go get github.com/golang/mock/mockgen@v1.5.0
```

### Go 1.16+

```bash
go install github.com/golang/mock/mockgen@v1.5.0
```

If you use `mockgen` in your CI pipeline, it may be more appropriate to fixate
on a specific mockgen version.

Expand Down

0 comments on commit a5582fc

Please sign in to comment.