@@ -15,15 +15,15 @@ import (
15
15
16
16
// Logger is used for logging messages.
17
17
type Logger interface {
18
- Print (v ... interface {} )
19
- Printf (format string , args ... interface {} )
18
+ Print (v ... any )
19
+ Printf (format string , args ... any )
20
20
}
21
21
22
22
type preforkServer interface {
23
23
ListenAndServe (addr string ) error
24
24
}
25
25
26
- type JSONMarshalFunc func (w io.Writer , value interface {} ) error
26
+ type JSONMarshalFunc func (w io.Writer , value any ) error
27
27
28
28
// Atreugo implements high performance HTTP server
29
29
//
@@ -557,7 +557,7 @@ type View func(*RequestCtx) error
557
557
type ErrorView func (* RequestCtx , error , int )
558
558
559
559
// PanicView must process panics recovered from views, if it's defined in configuration.
560
- type PanicView func (* RequestCtx , interface {} )
560
+ type PanicView func (* RequestCtx , any )
561
561
562
562
// Middleware must process all incoming requests before/after defined views.
563
563
type Middleware View
@@ -586,4 +586,4 @@ type Middlewares struct {
586
586
type PathRewriteFunc func (ctx * RequestCtx ) []byte
587
587
588
588
// JSON is a map whose key is a string and whose value an interface.
589
- type JSON map [string ]interface {}
589
+ type JSON map [string ]any
0 commit comments