From e3b1a1ddf191503f9bc0c3115e4a60f21bb2bcb0 Mon Sep 17 00:00:00 2001 From: David Hernandez Date: Thu, 22 Sep 2016 16:35:56 +0900 Subject: [PATCH] added installing section --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 513cd0f..50b11d3 100644 --- a/README.md +++ b/README.md @@ -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. + +### Installing + +To start using moq, just run go get: +``` +$ go get github.com/matryer/moq +``` + ### Usage ``` @@ -21,7 +29,7 @@ moq [flags] destination interface [interface2 [interface3 [...]]] In a command line: ``` -moq -out mocks_test.go . MyInterface +$ moq -out mocks_test.go . MyInterface ``` In code (for go generate):