From b9905296216d0875d3e8382d4872816ea6ff42b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Tue, 13 Jun 2023 11:28:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E7=A1=80=E6=95=B0=E7=BB=84=E5=AE=9A?= =?UTF-8?q?=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- array.go | 7 +++---- base.go | 17 +++++++++++++++++ 2 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 base.go diff --git a/array.go b/array.go index bebcb48..31a1bee 100644 --- a/array.go +++ b/array.go @@ -13,8 +13,7 @@ package op_type // // Date : 16:34 2023/4/17 type Array interface { - []interface{} | []bool | []string | int | int8 | int16 | int32 | int64 | - uint | uint8 | uint16 | uint32 | uint64 | - float32 | float64 | - map[string]interface{} | map[interface{}]interface{} | map[int64]int64 | map[float64]interface{} + []bool | []string | []int | []int8 | []int16 | []int32 | []int64 | + []uint | []uint8 | []uint16 | []uint32 | []uint64 | + []float32 | []float64 | []string } diff --git a/base.go b/base.go new file mode 100644 index 0000000..77eaa4f --- /dev/null +++ b/base.go @@ -0,0 +1,17 @@ +// Package op_type ... +// +// Description : op_type ... +// +// Author : go_developer@163.com<白茶清欢> +// +// Date : 2023-06-13 11:24 +package op_type + +// BaseType 基础数据类型 +// +// Author : go_developer@163.com<白茶清欢> +// +// Date : 11:25 2023/6/13 +type BaseType interface { + int | int8 | int16 | int32 | int64 | uint | uint8 | uint16 | uint32 | uint64 | float32 | float64 | bool | string +}