mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-09-01 02:02:58 +02:00
rename interface{} to any.
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
package nostr
|
||||
|
||||
import (
|
||||
"github.com/gorilla/websocket"
|
||||
"sync"
|
||||
|
||||
"github.com/gorilla/websocket"
|
||||
)
|
||||
|
||||
type Connection struct {
|
||||
@@ -16,7 +17,7 @@ func NewConnection(socket *websocket.Conn) *Connection {
|
||||
}
|
||||
}
|
||||
|
||||
func (c *Connection) WriteJSON(v interface{}) error {
|
||||
func (c *Connection) WriteJSON(v any) error {
|
||||
c.mutex.Lock()
|
||||
defer c.mutex.Unlock()
|
||||
return c.socket.WriteJSON(v)
|
||||
|
Reference in New Issue
Block a user