mirror of
https://github.com/tiny-craft/tiny-rdm.git
synced 2025-10-08 08:30:08 +08:00
Initial commit
This commit is contained in:
13
backend/utils/constraints.go
Normal file
13
backend/utils/constraints.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package utils
|
||||
|
||||
type Hashable interface {
|
||||
~int | ~int8 | ~int16 | ~int32 | ~int64 | ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr | ~float32 | ~float64 | ~string
|
||||
}
|
||||
|
||||
type SignedNumber interface {
|
||||
~int | ~int8 | ~int16 | ~int32 | ~int64 | ~float32 | ~float64
|
||||
}
|
||||
|
||||
type UnsignedNumber interface {
|
||||
~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64
|
||||
}
|
Reference in New Issue
Block a user