Skip to content

Commit ce903f6

Browse files
apoorvajagtapAlexVulaj
authored andcommitted
Reverts to v1.5.0
This commit reverts the changes back till 8983b96. And inherits the README.md changes of 931041c Relates to: - #880 (comment)
1 parent 9ec25ca commit ce903f6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+215
-1643
lines changed

.circleci/config.yml

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
version: 2.1
2+
3+
jobs:
4+
"test":
5+
parameters:
6+
version:
7+
type: string
8+
default: "latest"
9+
golint:
10+
type: boolean
11+
default: true
12+
modules:
13+
type: boolean
14+
default: true
15+
goproxy:
16+
type: string
17+
default: ""
18+
docker:
19+
- image: "cimg/go:<< parameters.version >>"
20+
working_directory: /home/circleci/project/go/src/github.com/gorilla/websocket
21+
environment:
22+
GO111MODULE: "on"
23+
GOPROXY: "<< parameters.goproxy >>"
24+
steps:
25+
- checkout
26+
- run:
27+
name: "Print the Go version"
28+
command: >
29+
go version
30+
- run:
31+
name: "Fetch dependencies"
32+
command: >
33+
if [[ << parameters.modules >> = true ]]; then
34+
go mod download
35+
export GO111MODULE=on
36+
else
37+
go get -v ./...
38+
fi
39+
# Only run gofmt, vet & lint against the latest Go version
40+
- run:
41+
name: "Run golint"
42+
command: >
43+
if [ << parameters.version >> = "latest" ] && [ << parameters.golint >> = true ]; then
44+
go get -u golang.org/x/lint/golint
45+
golint ./...
46+
fi
47+
- run:
48+
name: "Run gofmt"
49+
command: >
50+
if [[ << parameters.version >> = "latest" ]]; then
51+
diff -u <(echo -n) <(gofmt -d -e .)
52+
fi
53+
- run:
54+
name: "Run go vet"
55+
command: >
56+
if [[ << parameters.version >> = "latest" ]]; then
57+
go vet -v ./...
58+
fi
59+
- run:
60+
name: "Run go test (+ race detector)"
61+
command: >
62+
go test -v -race ./...
63+
64+
workflows:
65+
tests:
66+
jobs:
67+
- test:
68+
matrix:
69+
parameters:
70+
version: ["1.18", "1.17", "1.16"]

.editorconfig

-20
This file was deleted.

.github/release-drafter.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Config for https://github.com/apps/release-drafter
2+
template: |
3+
4+
<summary of changes here>
5+
6+
## CHANGELOG
7+
$CHANGES

.github/workflows/issues.yml

-21
This file was deleted.

.github/workflows/security.yml

-37
This file was deleted.

.github/workflows/test.yml

-35
This file was deleted.

.github/workflows/verify.yml

-31
This file was deleted.

.gitignore

+25-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,25 @@
1-
coverage.coverprofile
1+
# Compiled Object files, Static and Dynamic libs (Shared Objects)
2+
*.o
3+
*.a
4+
*.so
5+
6+
# Folders
7+
_obj
8+
_test
9+
10+
# Architecture specific extensions/prefixes
11+
*.[568vq]
12+
[568vq].out
13+
14+
*.cgo1.go
15+
*.cgo2.c
16+
_cgo_defun.c
17+
_cgo_gotypes.go
18+
_cgo_export.*
19+
20+
_testmain.go
21+
22+
*.exe
23+
24+
.idea/
25+
*.iml

.golangci.yml

-13
This file was deleted.

AUTHORS

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# This is the official list of Gorilla WebSocket authors for copyright
2+
# purposes.
3+
#
4+
# Please keep the list sorted.
5+
6+
Gary Burd <[email protected]>
7+
Google LLC (https://opensource.google.com/)
8+
Joachim Bauch <[email protected]>
9+

LICENSE

+18-23
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,22 @@
1-
Copyright (c) 2023 The Gorilla Authors. All rights reserved.
1+
Copyright (c) 2013 The Gorilla WebSocket Authors. All rights reserved.
22

33
Redistribution and use in source and binary forms, with or without
4-
modification, are permitted provided that the following conditions are
5-
met:
4+
modification, are permitted provided that the following conditions are met:
65

7-
* Redistributions of source code must retain the above copyright
8-
notice, this list of conditions and the following disclaimer.
9-
* Redistributions in binary form must reproduce the above
10-
copyright notice, this list of conditions and the following disclaimer
11-
in the documentation and/or other materials provided with the
12-
distribution.
13-
* Neither the name of Google Inc. nor the names of its
14-
contributors may be used to endorse or promote products derived from
15-
this software without specific prior written permission.
6+
Redistributions of source code must retain the above copyright notice, this
7+
list of conditions and the following disclaimer.
168

17-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18-
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19-
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20-
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21-
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22-
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24-
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25-
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
9+
Redistributions in binary form must reproduce the above copyright notice,
10+
this list of conditions and the following disclaimer in the documentation
11+
and/or other materials provided with the distribution.
12+
13+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
14+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
17+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
19+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
20+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
21+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
22+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Makefile

-34
This file was deleted.

0 commit comments

Comments
 (0)