2018-05-22 18:27:51 +00:00
|
|
|
package main
|
|
|
|
|
2018-05-28 16:25:17 +00:00
|
|
|
import (
|
|
|
|
"reflect"
|
|
|
|
)
|
|
|
|
|
2018-05-22 18:27:51 +00:00
|
|
|
func Match(name string) bool {
|
|
|
|
return name == "string"
|
|
|
|
}
|
|
|
|
|
|
|
|
func Check(value interface{}) bool {
|
|
|
|
|
2018-05-28 16:25:17 +00:00
|
|
|
kind := reflect.TypeOf(value).Kind()
|
|
|
|
|
|
|
|
return kind == reflect.String
|
|
|
|
|
2018-05-22 18:27:51 +00:00
|
|
|
}
|