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

Commit cbd2e35

Browse files
committedSep 27, 2019
Update mockgen installation docs
fixes #308
1 parent dd8d2a2 commit cbd2e35

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

Diff for: ‎README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ contexts too.
99
Installation
1010
------------
1111

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

15-
go get github.com/golang/mock/gomock
16-
go install github.com/golang/mock/mockgen
14+
go get github.com/golang/mock/mockgen
1715

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

1919
Documentation
2020
-------------
@@ -74,9 +74,9 @@ It supports the following flags:
7474

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

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

0 commit comments

Comments
 (0)
This repository has been archived.