This repository was archived by the owner on Jun 27, 2023. It is now read-only.
File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -9,12 +9,12 @@ contexts too.
9
9
Installation
10
10
------------
11
11
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:
14
13
15
- go get github.com/golang/mock/gomock
16
- go install github.com/golang/mock/mockgen
14
+ go get github.com/golang/mock/mockgen
17
15
16
+ _ Note: It is recommended to have ` GO111MODULE=on ` to ensure the correct
17
+ dependencies are used._
18
18
19
19
Documentation
20
20
-------------
@@ -74,9 +74,9 @@ It supports the following flags:
74
74
75
75
* ` -build_flags ` : (reflect mode only) Flags passed verbatim to ` go build ` .
76
76
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
78
78
as a comma-separated list of elements of the form
79
- `Repository=MockSensorRepository,Endpoint=MockSensorEndpoint`, where
79
+ `Repository=MockSensorRepository,Endpoint=MockSensorEndpoint`, where
80
80
`Repository` is the interface name and `MockSensorRepository` is the desired
81
81
mock name (mock factory method and mock recorder will be named after the mock).
82
82
If one of the interfaces has no custom name specified, then default naming
You can’t perform that action at this time.
0 commit comments