@@ -124,8 +124,8 @@ type Mega struct {
124124 // HTTP Client
125125 client * http.Client
126126 // Loggers
127- logf func (format string , v ... interface {} )
128- debugf func (format string , v ... interface {} )
127+ logf func (format string , v ... any )
128+ debugf func (format string , v ... any )
129129 // serialize the API requests
130130 apiMu sync.Mutex
131131 // mutex to protext waitEvents
@@ -369,7 +369,7 @@ func (m *Mega) SetClient(client *http.Client) *Mega {
369369}
370370
371371// discardLogf discards the log messages
372- func discardLogf (format string , v ... interface {} ) {
372+ func discardLogf (format string , v ... any ) {
373373}
374374
375375// Returns an opaque string representing the session
@@ -391,7 +391,7 @@ func (m *Mega) LoginWithKeys(sessionId string, masterKey []byte) error {
391391
392392// SetLogger sets the logger for important messages. By default this
393393// is log.Printf. Use nil to discard the messages.
394- func (m * Mega ) SetLogger (logf func (format string , v ... interface {} )) * Mega {
394+ func (m * Mega ) SetLogger (logf func (format string , v ... any )) * Mega {
395395 if logf == nil {
396396 logf = discardLogf
397397 }
@@ -401,7 +401,7 @@ func (m *Mega) SetLogger(logf func(format string, v ...interface{})) *Mega {
401401
402402// SetDebugger sets the logger for debug messages. By default these
403403// messages are not output.
404- func (m * Mega ) SetDebugger (debugf func (format string , v ... interface {} )) * Mega {
404+ func (m * Mega ) SetDebugger (debugf func (format string , v ... any )) * Mega {
405405 if debugf == nil {
406406 debugf = discardLogf
407407 }
0 commit comments