Skip to content

Commit

Permalink
Add helpful info to README about GOPATH for the installation (#139)
Browse files Browse the repository at this point in the history
Added helpful steps that aren't mentioned in the Installation section.

This caused me some headache and I'd like to save the next developer
some time!
  • Loading branch information
carson-brill authored Feb 20, 2024
1 parent 1b6a97d commit e649d89
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@ Install the `mockgen` tool.
go install go.uber.org/mock/mockgen@latest
```

To ensure it was installed correctly, use:

```
mockgen -version
```

If that fails, make sure your GOPATH/bin is in your PATH. You can add it with:

```
export PATH=$PATH:$(go env GOPATH)/bin
```

## Running mockgen

`mockgen` has two modes of operation: source and reflect.
Expand Down

0 comments on commit e649d89

Please sign in to comment.