mirror of
https://github.com/ManyakRus/crud_generator.git
synced 2024-12-22 00:36:41 +02:00
15 lines
262 B
Go
15 lines
262 B
Go
|
package mini_func
|
||
|
|
||
|
func IsNumberType(TypeGo string) bool {
|
||
|
Otvet := false
|
||
|
|
||
|
switch TypeGo {
|
||
|
case "int", "int8", "int16", "int32", "int64", "float32", "float64", "uint", "uint8", "uint16", "uint32", "uint64", "byte":
|
||
|
{
|
||
|
Otvet = true
|
||
|
}
|
||
|
}
|
||
|
|
||
|
return Otvet
|
||
|
}
|