added installing section

This commit is contained in:
David Hernandez 2016-09-22 16:35:56 +09:00 committed by GitHub
parent 5d582c3c68
commit e3b1a1ddf1

View File

@ -8,6 +8,14 @@ By [Mat Ryer](https://twitter.com/matryer) and [David Hernandez](https://github.
Moq is a tool that generates a struct from any interface. The struct can be used in test code as a mock of the interface. Moq is a tool that generates a struct from any interface. The struct can be used in test code as a mock of the interface.
### Installing
To start using moq, just run go get:
```
$ go get github.com/matryer/moq
```
### Usage ### Usage
``` ```
@ -21,7 +29,7 @@ moq [flags] destination interface [interface2 [interface3 [...]]]
In a command line: In a command line:
``` ```
moq -out mocks_test.go . MyInterface $ moq -out mocks_test.go . MyInterface
``` ```
In code (for go generate): In code (for go generate):