feat: generic 包新增 Basic 类型

This commit is contained in:
kercylan98 2023-11-07 10:56:07 +08:00
parent 0b77cc9907
commit d405cae73f
1 changed files with 5 additions and 0 deletions

View File

@ -34,3 +34,8 @@ type Unsigned interface {
type Float interface {
~float32 | ~float64
}
// Basic 基本类型
type Basic interface {
Signed | Unsigned | Float | ~string | ~bool | ~byte
}