From 065425b5618cb5eedfded7da90a2fb34a9ac5abc Mon Sep 17 00:00:00 2001 From: wind010 Date: Wed, 21 Feb 2024 20:36:22 -0800 Subject: [PATCH] Update installation command for golang version 1.17 and up --- readme.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index aa175a2..476b716 100644 --- a/readme.md +++ b/readme.md @@ -12,12 +12,19 @@ There are a handful of bugs to fix, but everything works pretty well at the mome Download a binary from the releases page: https://github.com/maxmcd/webtty/releases -Or, install directly with Go. WebTTY requires go version 1.9 or higher. +Or, install directly with Go. WebTTY requires Go version 1.9 or higher. +For Go versions below 1.7: +```bash +go get -u github.com/maxmcd/webtty +``` + +For Go versions 1.7 and up: ```bash go install github.com/maxmcd/webtty@latest ``` + There were recent breaking api changes in the pion/webrtc library. Make sure to run `go get -u github.com/pion/webrtc` if you're running into any installation errors. ### Running