diff --git a/base.go b/base.go index 77eaa4f..8dae28a 100644 --- a/base.go +++ b/base.go @@ -13,5 +13,5 @@ package op_type // // Date : 11:25 2023/6/13 type BaseType interface { - int | int8 | int16 | int32 | int64 | uint | uint8 | uint16 | uint32 | uint64 | float32 | float64 | bool | string + any | int | int8 | int16 | int32 | int64 | uint | uint8 | uint16 | uint32 | uint64 | float32 | float64 | bool | string } diff --git a/dict.go b/dict.go index 24ab5a6..8c8a9d4 100644 --- a/dict.go +++ b/dict.go @@ -15,3 +15,5 @@ package op_type type Dict interface { map[string]interface{} | map[interface{}]interface{} | map[int64]int64 | map[float64]interface{} } + +type MapSlice[K string, V []int64 | []uint64 | []string | []any] map[K]V