13 lines
186 B
Go
13 lines
186 B
Go
|
package main
|
||
|
|
||
|
func Match(name string) bool {
|
||
|
return name == "int"
|
||
|
}
|
||
|
|
||
|
func Check(value interface{}) bool {
|
||
|
_, intOK := value.(int)
|
||
|
_, uintOK := value.(uint)
|
||
|
|
||
|
return intOK || uintOK
|
||
|
}
|