From ca8081f83abeaa664b26c493fcce5c95744634ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Sat, 14 Oct 2023 21:06:41 +0800 Subject: [PATCH] update --- base.go | 2 +- dict.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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