泛型定义

This commit is contained in:
2023-04-15 20:20:42 +08:00
commit 4c7d35da17
6 changed files with 106 additions and 0 deletions

17
number.go Normal file
View File

@ -0,0 +1,17 @@
// Package op_type ...
//
// Description : op_type ...
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 2023-04-15 20:13
package op_type
// Number ...
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 20:14 2023/4/15
type Number interface {
int | int8 | int16 | int32 | int64 | uint | uint8 | uint16 | uint32 | uint64 | float32 | float64
}