From f1d88ba122d566c65b23cc70aec101bc92278910 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Lo=CC=88ffel?= Date: Tue, 16 Mar 2021 09:31:17 +0100 Subject: [PATCH 1/3] update --- .gitignore | 3 ++- .ls-lint.yml | 7 +++++++ .travis.yml | 8 ++++---- Makefile | 11 +++++++++++ go.mod | 6 +++--- go.sum | 4 ++++ makefile | 3 +++ 7 files changed, 34 insertions(+), 8 deletions(-) create mode 100644 .ls-lint.yml create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index c610222..ae2ed59 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .history -/.idea \ No newline at end of file +/.idea +ls-lint \ No newline at end of file diff --git a/.ls-lint.yml b/.ls-lint.yml new file mode 100644 index 0000000..3d8fb9c --- /dev/null +++ b/.ls-lint.yml @@ -0,0 +1,7 @@ +ls: + .dir: snake_case + .go: snake_case + +ignore: + - .git + - .idea \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index ae46c72..4bd2334 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,12 +8,12 @@ env: - GO111MODULE=on go: - - "1.11.x" - - "1.12.x" - - "1.13.x" + - "1.14.x" + - "1.15.x" + - "1.16.x" before_script: - - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.23.6 + - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.38.0 script: - make install diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..dcf319a --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +install: + go get + +linter: + golangci-lint run + +ls-lint: + curl -sL -o ls-lint https://github.com/loeffel-io/ls-lint/releases/download/v1.9.2/ls-lint-linux && chmod +x ls-lint && ./ls-lint + +test: + make linter \ No newline at end of file diff --git a/go.mod b/go.mod index 853d1ee..8a8205a 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,8 @@ module github.com/recws-org/recws -go 1.13 +go 1.16 require ( - github.com/gorilla/websocket v1.4.1 - github.com/jpillora/backoff v0.0.0-20180909062703-3050d21c67d7 + github.com/gorilla/websocket v1.4.2 + github.com/jpillora/backoff v1.0.0 ) diff --git a/go.sum b/go.sum index 99cf9f2..a8cc6fc 100644 --- a/go.sum +++ b/go.sum @@ -1,4 +1,8 @@ github.com/gorilla/websocket v1.4.1 h1:q7AeDBpnBk8AogcD4DSag/Ukw/KV+YhzLj2bP5HvKCM= github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc= +github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/jpillora/backoff v0.0.0-20180909062703-3050d21c67d7 h1:K//n/AqR5HjG3qxbrBCL4vJPW0MVFSs9CPK1OOJdRME= github.com/jpillora/backoff v0.0.0-20180909062703-3050d21c67d7/go.mod h1:2iMrUgbbvHEiQClaW2NsSzMyGHqN+rDFqY705q49KG0= +github.com/jpillora/backoff v1.0.0 h1:uvFg412JmmHBHw7iwprIxkPMI+sGQ4kzOWsMeHnm2EA= +github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= diff --git a/makefile b/makefile index 6dc985f..dcf319a 100644 --- a/makefile +++ b/makefile @@ -4,5 +4,8 @@ install: linter: golangci-lint run +ls-lint: + curl -sL -o ls-lint https://github.com/loeffel-io/ls-lint/releases/download/v1.9.2/ls-lint-linux && chmod +x ls-lint && ./ls-lint + test: make linter \ No newline at end of file From 6380b1a5f1fea03ecaaa8cce55b99ee48a3180f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Lo=CC=88ffel?= Date: Tue, 16 Mar 2021 09:33:38 +0100 Subject: [PATCH 2/3] added sponsor --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 6ff7323..36d7c2a 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,10 @@ Reconnecting WebSocket is a websocket client based on [gorilla/websocket](https: go get github.com/recws-org/recws ``` +## Sponsors + +- [Makeless - Saas Ecosystem](https://github.com/makeless) + ## Logo - Logo by [Anastasia Marx](https://www.behance.net/AnastasiaMarx) From 7a97e0766bb4aab00f4bb8081538dd7b36dbd342 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Lo=CC=88ffel?= Date: Tue, 16 Mar 2021 09:35:44 +0100 Subject: [PATCH 3/3] add ls-lint --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 4bd2334..0071d57 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,5 +17,6 @@ before_script: script: - make install + - make ls-lint - make linter - go run examples/basic.go \ No newline at end of file