GITLAB

Hermes / api-game

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • api-game_qianyi
  • util
  • uttype
  • number.go
  • 10969d16   feat:公共库整理,开卡包(新卡,保底卡) Browse Code »
    王家文
    2024-04-07 18:56:55 +0800  
number.go 315 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
package uttype

// Int 整型
type Int interface {
	int | int8 | int16 | int32 | int64 | float32 | float64
}

// Uint 无符号整型
type Uint interface {
	uint | uint8 | uint16 | uint32
}

// Float 浮点
type Float interface {
	float32 | float64
}

// Number 数字
type Number interface {
	Int | Uint | Float
}