From 77673baa2378a3ecc9c060f7e1b856e6834642e9 Mon Sep 17 00:00:00 2001 From: kercylan98 Date: Thu, 1 Jun 2023 11:35:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=95=B0=E5=AD=97=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/generic/type.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/generic/type.go b/utils/generic/type.go index 0617be0..7013117 100644 --- a/utils/generic/type.go +++ b/utils/generic/type.go @@ -4,6 +4,10 @@ type Ordered interface { Integer | Float | ~string } +type Number interface { + Integer | Float +} + type Integer interface { Signed | Unsigned }