mirror of
https://github.com/aykhans/slash-e.git
synced 2026-11-06 06:55:10 +00:00
chore: use any instead of interface{}
This commit is contained in:
1 parent
6512d6d277
commit
a9f33cef6a
7 files changed
+13
-13
No files matched your search
+2
-2
@@ -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