rename module
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
.history
|
||||
/.idea
|
||||
.vscode
|
||||
ls-lint
|
||||
@@ -1,7 +0,0 @@
|
||||
ls:
|
||||
.dir: snake_case
|
||||
.go: snake_case
|
||||
|
||||
ignore:
|
||||
- .git
|
||||
- .idea
|
||||
-23
@@ -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
|
||||
@@ -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
|
||||
@@ -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!
|
||||
|
||||
[](https://travis-ci.com/andoma-go/recws)
|
||||
[](https://godoc.org/github.com/andoma-go/recws)
|
||||
[](https://goreportcard.com/report/github.com/andoma-go/recws)
|
||||
[](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
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ import (
|
||||
"log"
|
||||
"time"
|
||||
|
||||
"github.com/andoma-go/recws"
|
||||
"git.company.lan/gopkg/recws"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -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 => ../
|
||||
@@ -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=
|
||||
Reference in New Issue
Block a user