From d405cae73f527e636f544fffb6e8f9b16965d2ce Mon Sep 17 00:00:00 2001 From: kercylan98 Date: Tue, 7 Nov 2023 10:56:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20generic=20=E5=8C=85=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=20Basic=20=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/generic/type.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utils/generic/type.go b/utils/generic/type.go index 320b31e..cbcd1c8 100644 --- a/utils/generic/type.go +++ b/utils/generic/type.go @@ -34,3 +34,8 @@ type Unsigned interface { type Float interface { ~float32 | ~float64 } + +// Basic 基本类型 +type Basic interface { + Signed | Unsigned | Float | ~string | ~bool | ~byte +}