refactor: persist add Serializer

This commit is contained in:
weloe
2023-08-10 18:33:48 +08:00
parent 5f31fdee04
commit 097d1b9445
7 changed files with 85 additions and 75 deletions

View File

@@ -1,6 +1,13 @@
package util
import "fmt"
import (
"fmt"
"reflect"
)
func GetType(i any) reflect.Type {
return reflect.TypeOf(i)
}
func HasNil(arr []interface{}) bool {
for _, elem := range arr {