Update README.md

This commit is contained in:
Maddie Zhan 2020-05-13 11:33:45 +08:00
parent ea5d4b7d8f
commit 321ab6a251

View file

@ -33,14 +33,24 @@ Works with mobile versions too.
## Installation
You need Go 1.13+ to compile the binary.
You need Go 1.13+ to compile the binary. If you have an older version of Go and don't want to install the tarball
manually, you can install newer version of Go into your GOPATH:
0. Install Go 1.14
```
$ go get golang.org/dl/go1.14.2
# Assuming your GOPATH is default (~/go), Go 1.14.2 will be installed in ~/go/bin
$ ~/go/bin/go1.14.2 version
go version go1.14.2 linux/amd64
```
1. Clone this repository:
```
$ git clone github.com/librespeed/speedtest
# Switch to the Go branch
$ git checkout -b go
$ git checkout go
```
2. Build