From 99aa9272d551d0d16f4bdcc43dc06a3077e69b3a Mon Sep 17 00:00:00 2001 From: Dimitar Ivanov Date: Mon, 26 Oct 2020 16:28:58 +0200 Subject: [PATCH] update readme spacing (#495) --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 40d9f451..77b97017 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,8 @@ Running mockgen --------------- `mockgen` has two modes of operation: source and reflect. + +#### Source mode Source mode generates mock interfaces from a source file. It is enabled by using the -source flag. Other flags that may be useful in this mode are -imports and -aux_files. @@ -46,6 +48,7 @@ Example: mockgen -source=foo.go [other options] ``` +#### Reflect mode Reflect mode generates mock interfaces by building a program that uses reflection to understand interfaces. It is enabled by passing two non-flag arguments: an import path, and a @@ -62,6 +65,7 @@ mockgen database/sql/driver Conn,Driver mockgen . Conn,Driver ``` +#### Flags The `mockgen` command is used to generate source code for a mock class given a Go source file containing interfaces to be mocked. It supports the following flags: