📅  最后修改于: 2022-03-11 14:58:04.094000             🧑  作者: Mango
var value interface{} = "Hello Grepper"
switch vale.(type){
case string:
fmt.Println("It is a string")
case int:
fmt.Println("It is a int")
default:
fmt.Println("Not sure")
}