From c579b13705b67a33fe4b832502f4c327a722d656 Mon Sep 17 00:00:00 2001 From: retgits Date: Fri, 26 Apr 2019 21:34:01 -0700 Subject: [PATCH] fix: update readme with gopath --- README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 421570fb..644c48d5 100644 --- a/README.md +++ b/README.md @@ -28,9 +28,26 @@ Find #wtfutil on https://gophers.slack.com/ and join us. ## Quick Start -[Download and run the latest binary](https://github.com/wtfutil/wtf/releases) or install from source: +[Download and run the latest binary](https://github.com/wtfutil/wtf/releases) or install from source. + +If you want to run the build command from within your `$GOPATH`: ```bash +# Set the Go proxy variable to GoCenter +export GOPROXY="https://gocenter.io" +# Enable Go modules +export GO111MODULE=on +go get -u github.com/wtfutil/wtf +cd $GOPATH/src/github.com/wtfutil/wtf +make install +make run +``` + +If you want to run the build command from a folder that is not in your `$GOPATH`: + +```bash +# Set the Go proxy variable to GoCenter +export GOPROXY="https://gocenter.io" go get -u github.com/wtfutil/wtf cd $GOPATH/src/github.com/wtfutil/wtf make install