diff options
author | Zhongpeng Lin <zplin@uber.com> | 2022-06-18 16:33:02 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-18 16:33:02 -0700 |
commit | 52a7c74b3975bf9833e4c223370375b8b798a412 (patch) | |
tree | 59b395e1045e313fd6009e61d203708ef0f9675c /docs/go | |
parent | 6f11412dd7ceadfc30d01714652b61cfc49d3755 (diff) | |
download | bazelbuild-rules_go-52a7c74b3975bf9833e4c223370375b8b798a412.tar.gz |
Allow gomock to take Bazel common attributes (#3207)
Diffstat (limited to 'docs/go')
-rw-r--r-- | docs/go/extras/extras.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/go/extras/extras.md b/docs/go/extras/extras.md index 35a6ec30..f0fafc49 100644 --- a/docs/go/extras/extras.md +++ b/docs/go/extras/extras.md @@ -77,7 +77,7 @@ go_embed_data_dependencies() <pre> gomock(<a href="#gomock-name">name</a>, <a href="#gomock-library">library</a>, <a href="#gomock-out">out</a>, <a href="#gomock-source">source</a>, <a href="#gomock-interfaces">interfaces</a>, <a href="#gomock-package">package</a>, <a href="#gomock-self_package">self_package</a>, <a href="#gomock-aux_files">aux_files</a>, <a href="#gomock-mockgen_tool">mockgen_tool</a>, - <a href="#gomock-imports">imports</a>, <a href="#gomock-copyright_file">copyright_file</a>, <a href="#gomock-mock_names">mock_names</a>) + <a href="#gomock-imports">imports</a>, <a href="#gomock-copyright_file">copyright_file</a>, <a href="#gomock-mock_names">mock_names</a>, <a href="#gomock-kwargs">kwargs</a>) </pre> Calls [mockgen](https://github.com/golang/mock) to generates a Go file containing mocks from the given library. @@ -102,5 +102,6 @@ If `source` is given, the mocks are generated in source mode; otherwise in refle | <a id="gomock-imports"></a>imports | dictionary of name-path pairs of explicit imports to use. See [mockgen's -imports](https://github.com/golang/mock#flags) for more information. | <code>{}</code> | | <a id="gomock-copyright_file"></a>copyright_file | optional file containing copyright to prepend to the generated contents. See [mockgen's -copyright_file](https://github.com/golang/mock#flags) for more information. | <code>None</code> | | <a id="gomock-mock_names"></a>mock_names | dictionary of interface name to mock name pairs to change the output names of the mock objects. Mock names default to 'Mock' prepended to the name of the interface. See [mockgen's -mock_names](https://github.com/golang/mock#flags) for more information. | <code>{}</code> | +| <a id="gomock-kwargs"></a>kwargs | <p align="center"> - </p> | none | |