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

add docs on 1.16 install and adding to PATH #534

Merged
merged 1 commit into from Feb 25, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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