Skip to content

Commit 1d495b7

Browse files
committed
Update README.md, replace master to main
1 parent aa97606 commit 1d495b7

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ Gorilla WebSocket is a [Go](http://golang.org/) implementation of the [WebSocket
1313
### Documentation
1414

1515
* [API Reference](https://pkg.go.dev/github.com/gorilla/websocket?tab=doc)
16-
* [Chat example](https://github.com/gorilla/websocket/tree/master/examples/chat)
17-
* [Command example](https://github.com/gorilla/websocket/tree/master/examples/command)
18-
* [Client and server example](https://github.com/gorilla/websocket/tree/master/examples/echo)
19-
* [File watch example](https://github.com/gorilla/websocket/tree/master/examples/filewatch)
20-
* [Write buffer pool example](https://github.com/gorilla/websocket/tree/master/examples/bufferpool)
16+
* [Chat example](https://github.com/gorilla/websocket/tree/main/examples/chat)
17+
* [Command example](https://github.com/gorilla/websocket/tree/main/examples/command)
18+
* [Client and server example](https://github.com/gorilla/websocket/tree/main/examples/echo)
19+
* [File watch example](https://github.com/gorilla/websocket/tree/main/examples/filewatch)
20+
* [Write buffer pool example](https://github.com/gorilla/websocket/tree/main/examples/bufferpool)
2121

2222
### Status
2323

@@ -33,4 +33,4 @@ package API is stable.
3333

3434
The Gorilla WebSocket package passes the server tests in the [Autobahn Test
3535
Suite](https://github.com/crossbario/autobahn-testsuite) using the application in the [examples/autobahn
36-
subdirectory](https://github.com/gorilla/websocket/tree/master/examples/autobahn).
36+
subdirectory](https://github.com/gorilla/websocket/tree/main/examples/autobahn).

examples/chat/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ sends them to the hub.
3838
### Hub
3939

4040
The code for the `Hub` type is in
41-
[hub.go](https://github.com/gorilla/websocket/blob/master/examples/chat/hub.go).
41+
[hub.go](https://github.com/gorilla/websocket/blob/main/examples/chat/hub.go).
4242
The application's `main` function starts the hub's `run` method as a goroutine.
4343
Clients send requests to the hub using the `register`, `unregister` and
4444
`broadcast` channels.
@@ -57,7 +57,7 @@ unregisters the client and closes the websocket.
5757

5858
### Client
5959

60-
The code for the `Client` type is in [client.go](https://github.com/gorilla/websocket/blob/master/examples/chat/client.go).
60+
The code for the `Client` type is in [client.go](https://github.com/gorilla/websocket/blob/main/examples/chat/client.go).
6161

6262
The `serveWs` function is registered by the application's `main` function as
6363
an HTTP handler. The handler upgrades the HTTP connection to the WebSocket
@@ -85,7 +85,7 @@ network.
8585

8686
## Frontend
8787

88-
The frontend code is in [home.html](https://github.com/gorilla/websocket/blob/master/examples/chat/home.html).
88+
The frontend code is in [home.html](https://github.com/gorilla/websocket/blob/main/examples/chat/home.html).
8989

9090
On document load, the script checks for websocket functionality in the browser.
9191
If websocket functionality is available, then the script opens a connection to

0 commit comments

Comments
 (0)