type Human struct {
Name string
}
func (t *Human) GetInfo() {
fmt.Println(t.Name)
}
func main() {
var p1 interface{}
p1 = Human{Name:"John"}
//p1.GetInfo()
}
now,p1's typs is interface{}, but i want get a Human object.
How to do? i can call p1.GetInfo()