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

Commit

Permalink
Update mockgen installation docs
Browse files Browse the repository at this point in the history
fixes #308
  • Loading branch information
poy committed Sep 27, 2019
1 parent dd8d2a2 commit cbd2e35
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ contexts too.
Installation
------------

Once you have [installed Go][golang-install], run these commands
to install the `gomock` package and the `mockgen` tool:
Once you have [installed Go][golang-install], install the `mockgen` tool:

go get github.com/golang/mock/gomock
go install github.com/golang/mock/mockgen
go get github.com/golang/mock/mockgen

_Note: It is recommended to have `GO111MODULE=on` to ensure the correct
dependencies are used._

Documentation
-------------
Expand Down Expand Up @@ -74,9 +74,9 @@ It supports the following flags:

* `-build_flags`: (reflect mode only) Flags passed verbatim to `go build`.

* `-mock_names`: A list of custom names for generated mocks. This is specified
* `-mock_names`: A list of custom names for generated mocks. This is specified
as a comma-separated list of elements of the form
`Repository=MockSensorRepository,Endpoint=MockSensorEndpoint`, where
`Repository=MockSensorRepository,Endpoint=MockSensorEndpoint`, where
`Repository` is the interface name and `MockSensorRepository` is the desired
mock name (mock factory method and mock recorder will be named after the mock).
If one of the interfaces has no custom name specified, then default naming
Expand Down

0 comments on commit cbd2e35

Please # to comment.