1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

fix: update readme with gopath

This commit is contained in:
retgits 2019-04-26 21:34:01 -07:00
parent ee98726c7f
commit c579b13705
No known key found for this signature in database
GPG Key ID: 9D3AD75D6182395C

View File

@ -28,9 +28,26 @@ Find #wtfutil on https://gophers.slack.com/ and join us.
## Quick Start ## 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 ```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 go get -u github.com/wtfutil/wtf
cd $GOPATH/src/github.com/wtfutil/wtf cd $GOPATH/src/github.com/wtfutil/wtf
make install make install