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:
parent
ee98726c7f
commit
c579b13705
19
README.md
19
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user