blob: 48cc26749c3f3280f07cd57aa983afa48da2d8a3 [file] [log] [blame]
// +build ignore,OMIT
package main
import "fmt"
type Person struct{ Name string }
func (p Person) Introduce() { fmt.Println("Hi, I'm", p.Name) }
type Employee struct {
Person
EmployeeID int
}
func ExampleEmployee() {
var e Employee
e.Name = "Peter"
e.EmployeeID = 1234
e.Introduce()
}