diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 6c45690..0000000 --- a/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -.history -/.idea -.vscode -ls-lint \ No newline at end of file diff --git a/.ls-lint.yml b/.ls-lint.yml deleted file mode 100644 index 3d8fb9c..0000000 --- a/.ls-lint.yml +++ /dev/null @@ -1,7 +0,0 @@ -ls: - .dir: snake_case - .go: snake_case - -ignore: - - .git - - .idea \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 8a40d03..0000000 --- a/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -notifications: - email: false - slack: false - -language: go - -env: - - GO111MODULE=on - -go: - - "1.14.x" - - "1.15.x" - - "1.16.x" - - "1.17.x" - -before_script: - - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.43.0 - -script: - - make install - - make ls-lint - - make linter - - go run examples/basic.go \ No newline at end of file diff --git a/Makefile b/Makefile deleted file mode 100644 index 030b29b..0000000 --- a/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -install: - go get - -linter: - golangci-lint run - -ls-lint: - curl -sL -o ls-lint https://github.com/loeffel-io/ls-lint/releases/download/v1.10.0/ls-lint-linux && chmod +x ls-lint && ./ls-lint - -test: - make linter \ No newline at end of file diff --git a/README.md b/README.md index 37390b1..a7d63c4 100644 --- a/README.md +++ b/README.md @@ -6,15 +6,10 @@ Reconnecting WebSocket is a websocket client based on [gorilla/websocket](https://github.com/gorilla/websocket) that will automatically reconnect if the connection is dropped - thread safe! -[![Build Status](https://travis-ci.com/andoma-go/recws.svg?branch=master)](https://travis-ci.com/andoma-go/recws) -[![GoDoc](https://godoc.org/github.com/andoma-go/recws?status.svg)](https://godoc.org/github.com/andoma-go/recws) -[![Go Report Card](https://goreportcard.com/badge/github.com/andoma-go/recws)](https://goreportcard.com/report/github.com/andoma-go/recws) -[![GitHub license](https://img.shields.io/github/license/andoma-go/recws.svg)](https://github.com/andoma-go/recws/blob/master/LICENSE) - ## Installation ```bash -go get github.com/andoma-go/recws +go get git.company.lan/gopkg/recws ``` ## Sponsors diff --git a/examples/basic.go b/examples/basic.go index 3346294..579f1cd 100644 --- a/examples/basic.go +++ b/examples/basic.go @@ -5,7 +5,7 @@ import ( "log" "time" - "github.com/andoma-go/recws" + "git.company.lan/gopkg/recws" ) func main() { diff --git a/examples/go.mod b/examples/go.mod new file mode 100644 index 0000000..167cfc4 --- /dev/null +++ b/examples/go.mod @@ -0,0 +1,12 @@ +module git.company.lan/gopkg/recws/examples + +go 1.21.5 + +require git.company.lan/gopkg/recws v0.0.0-00010101000000-000000000000 + +require ( + github.com/gorilla/websocket v1.4.2 // indirect + github.com/jpillora/backoff v1.0.0 // indirect +) + +replace git.company.lan/gopkg/recws => ../ diff --git a/examples/go.sum b/examples/go.sum new file mode 100644 index 0000000..b3efb9a --- /dev/null +++ b/examples/go.sum @@ -0,0 +1,4 @@ +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 v1.0.0 h1:uvFg412JmmHBHw7iwprIxkPMI+sGQ4kzOWsMeHnm2EA= +github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= diff --git a/go.mod b/go.mod index 8f0b6c8..20531e8 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ -module github.com/andoma-go/recws +module git.company.lan/gopkg/recws -go 1.18 +go 1.21.5 require ( github.com/gorilla/websocket v1.4.2