rename socket package to sockets

This commit is contained in:
syumai 2024-01-03 20:09:47 +09:00
parent 744d9cc0f1
commit 258911a292
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -1,4 +1,4 @@
package socket package sockets
import ( import (
"context" "context"

View File

@ -1,4 +1,4 @@
package socket package sockets
import ( import (
"context" "context"