Skip to content

Commit a1bbddd

Browse files
nmykSean-Der
authored andcommitted
Improve docs around Go Modules
adds export `GO111MODULE=on` to examples READMEs when appropriate
1 parent 03573fa commit a1bbddd

File tree

15 files changed

+19
-0
lines changed

15 files changed

+19
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,12 @@ Pion WebRTC v3.0.0 has started! See the [release notes](https://github.com/pion/
2727

2828
Until `v3.0.0` has been tagged using `v2` is suggested. The last `v2` release is [v2.2.17](https://github.com/pion/webrtc/releases/tag/v2.2.17)
2929

30+
[Go Modules](https://blog.golang.org/using-go-modules) are mandatory for using Pion WebRTC. So make sure you set `export GO111MODULE=on`, and explicitly specify `/v2` or `/v3` when importing.
31+
3032
We are actively planning and would love your feedback! Please create GitHub issues or join [the Slack channel](https://pion.ly/slack) to follow development and speak with the maintainers.
3133

34+
----
35+
3236
Pion WebRTC is a pure Go implementation of WebRTC. It has zero non-Go dependencies and no 3rd party Go dependencies. It is designed to follow **[WebRTC API](https://w3c.github.io/webrtc-pc/)**, but may deviate when required.
3337
See [DESIGN.md](DESIGN.md) for the guiding principals/inspirations of the project.
3438

@@ -173,6 +177,7 @@ Check out the **[contributing wiki](https://github.com/pion/webrtc/wiki/Contribu
173177
* [Somers Matthews](https://github.com/somersbmatthews)
174178
* [Vitaliy F](https://github.com/funvit)
175179
* [Ivan Egorov](https://github.com/vany-egorov)
180+
* [Nick Mykins](https://github.com/nmyk)
176181

177182
### License
178183
MIT License - see [LICENSE](LICENSE) for full text

examples/broadcast/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ This could serve as the building block to building conferencing software, and ot
66
## Instructions
77
### Download broadcast
88
```
9+
export GO111MODULE=on
910
go get github.com/pion/webrtc/v3/examples/broadcast
1011
```
1112

examples/custom-logger/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ users to override this and process messages however they want.
66
## Instructions
77
### Download custom-logger
88
```
9+
export GO111MODULE=on
910
go get github.com/pion/webrtc/v3/examples/custom-logger
1011
```
1112

examples/data-channels-create/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ data-channels-create is a Pion WebRTC application that shows how you can send/re
44
## Instructions
55
### Download data-channels-create
66
```
7+
export GO111MODULE=on
78
go get github.com/pion/webrtc/v3/examples/data-channels-create
89
```
910

examples/data-channels-detach-create/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ The example mirrors the data-channels-create example.
55

66
## Install
77
```
8+
export GO111MODULE=on
89
go get github.com/pion/webrtc/v3/examples/data-channels-detach-create
910
```
1011

examples/data-channels-detach/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ The example mirrors the data-channels example.
55

66
## Install
77
```
8+
export GO111MODULE=on
89
go get github.com/pion/webrtc/v3/examples/data-channels-detach
910
```
1011

examples/data-channels/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ data-channels is a Pion WebRTC application that shows how you can send/recv Data
44
## Instructions
55
### Download data-channels
66
```
7+
export GO111MODULE=on
78
go get github.com/pion/webrtc/v3/examples/data-channels
89
```
910

examples/insertable-streams/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ ffmpeg -i $INPUT_FILE -g 30 output.ivf
1414

1515
### Download insertable-streams
1616
```
17+
export GO111MODULE=on
1718
go get github.com/pion/webrtc/v3/examples/insertable-streams
1819
```
1920

examples/pion-to-pion/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ The `answer` side acts like a HTTP server and should therefore be ran first.
77
## Instructions
88
First run `answer`:
99
```sh
10+
export GO111MODULE=on
1011
go install github.com/pion/webrtc/v3/examples/pion-to-pion/answer
1112
answer
1213
```

examples/play-from-disk/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ ffmpeg -i $INPUT_FILE -c:a libopus -page_duration 20000 -vn output.ogg
1010

1111
### Download play-from-disk
1212
```
13+
export GO111MODULE=on
1314
go get github.com/pion/webrtc/v3/examples/play-from-disk
1415
```
1516

examples/reflect/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ reflect demonstrates how with one PeerConnection you can send video to Pion and
44
## Instructions
55
### Download reflect
66
```
7+
export GO111MODULE=on
78
go get github.com/pion/webrtc/v3/examples/reflect
89
```
910

examples/rtp-forwarder/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ rtp-forwarder is a simple application that shows how to forward your webcam/micr
44
## Instructions
55
### Download rtp-forwarder
66
```
7+
export GO111MODULE=on
78
go get github.com/pion/webrtc/v3/examples/rtp-forwarder
89
```
910

examples/rtp-to-webrtc/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ With this example we have pre-made GStreamer and ffmpeg pipelines, but you can u
66
## Instructions
77
### Download rtp-to-webrtc
88
```
9+
export GO111MODULE=on
910
go get github.com/pion/webrtc/v3/examples/rtp-to-webrtc
1011
```
1112

examples/save-to-disk/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ If you wish to save H264 to disk checkout out [save-to-webm](https://github.com/
66
## Instructions
77
### Download save-to-disk
88
```
9+
export GO111MODULE=on
910
go get github.com/pion/webrtc/v3/examples/save-to-disk
1011
```
1112

examples/swap-tracks/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ swap-tracks demonstrates how to swap multiple incoming tracks on a single outgoi
44
## Instructions
55
### Download swap-tracks
66
```
7+
export GO111MODULE=on
78
go get github.com/pion/webrtc/v3/examples/swap-tracks
89
```
910

0 commit comments

Comments
 (0)