package main

import (
"fmt"
)

//定义接口
type human interface {
//只有声明没有实现,也没有类型
eat()
}

type Student struct {
name string
}

//实现接口方法
func (s *Student) eat() {
fmt.Println(s.name + " eat")
}

func main() {
s := Student{"yy"}
(&s).eat()
}