mirror of
https://github.com/weloe/token-go.git
synced 2025-10-06 07:56:58 +08:00
refactor: persist add Serializer
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user