mirror of
https://github.com/syumai/workers.git
synced 2025-03-10 17:29:11 +00:00
rename socket package to sockets
This commit is contained in:
parent
744d9cc0f1
commit
258911a292
@ -6,12 +6,12 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/syumai/workers"
|
"github.com/syumai/workers"
|
||||||
"github.com/syumai/workers/cloudflare/socket"
|
"github.com/syumai/workers/cloudflare/sockets"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
handler := http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
|
handler := http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
|
||||||
dialer, err := socket.NewDialer(req.Context(), nil)
|
dialer, err := sockets.NewDialer(req.Context(), nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||||
return
|
return
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package socket
|
package sockets
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
@ -1,4 +1,4 @@
|
|||||||
package socket
|
package sockets
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
Loading…
x
Reference in New Issue
Block a user