feat: update code

This commit is contained in:
2025-10-13 10:46:01 +08:00
parent 4928421213
commit da007da2fb
4 changed files with 8 additions and 28 deletions

View File

@ -14,6 +14,6 @@ package op_type
// Date : 16:34 2023/4/17
type Array interface {
[]bool | []string | []int | []int8 | []int16 | []int32 | []int64 |
[]uint | []uint8 | []uint16 | []uint32 | []uint64 |
[]float32 | []float64 | []any
[]uint | []uint8 | []uint16 | []uint32 | []uint64 |
[]float32 | []float64 | []any
}

View File

@ -8,12 +8,8 @@
package op_type
// Dict ...
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 20:18 2023/4/15
type Dict interface {
map[string]interface{} | map[interface{}]interface{} | map[int64]int64 | map[float64]interface{}
map[string]any | map[any]any | map[int64]int64 | map[float64]any
}
type MapSlice[K string, V []int64 | []uint64 | []string | []any] map[K]V

9
int.go
View File

@ -8,10 +8,11 @@
package op_type
// Int int类型
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 20:07 2023/4/15
type Int interface {
int | int8 | int16 | int32 | int64
}
// Uint uint类型
type Uint interface {
uint | uint8 | uint16 | uint32 | uint64
}

17
uint.go
View File

@ -1,17 +0,0 @@
// Package op_type ...
//
// Description : op_type ...
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 2023-04-15 20:10
package op_type
// Uint ...
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 20:10 2023/4/15
type Uint interface {
uint | uint8 | uint16 | uint32 | uint64
}