package main import ( "fmt" ) type Person interface { Rest() } type Employee struct{} func (e Employee) Rest() { fmt.Println("Pihenés...") } func main() { emp := Employee{} emp.Rest() }