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 +}