From cbd2e353ab04dfb7bd2e19ab7aa041c3440ad2c5 Mon Sep 17 00:00:00 2001 From: Andrew Poydence Date: Tue, 9 Jul 2019 16:53:26 -0600 Subject: [PATCH] Update mockgen installation docs fixes #308 --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 322c588d..2a903416 100644 --- a/README.md +++ b/README.md @@ -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 ------------- @@ -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