rename interface{} to any.

This commit is contained in:
fiatjaf
2023-04-12 12:14:24 -03:00
parent ec3f1287c4
commit 326d2790de
4 changed files with 6 additions and 5 deletions

View File

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