主要依赖 github.com/gin-gonic/gin github.com/gorilla/websocket websocket.go package api import ( errors github.com/gin-gonic/gin github.com/gorilla/websocket github.com/outakujo/utils log net/http sync ) type TextSocketSession struct { c *websocket.Conn Id string } func