mirror of
https://github.com/aykhans/slash-e.git
synced 2025-12-05 00:09:50 +00:00
chore: use any instead of interface{}
This commit is contained in:
@@ -6,9 +6,9 @@ import (
|
||||
"github.com/labstack/echo/v4"
|
||||
)
|
||||
|
||||
func composeResponse(data interface{}) interface{} {
|
||||
func composeResponse(data any) any {
|
||||
type R struct {
|
||||
Data interface{} `json:"data"`
|
||||
Data any `json:"data"`
|
||||
}
|
||||
|
||||
return R{
|
||||
|
||||
Reference in New Issue
Block a user