blob: d14a75c995e08174742f99cbbcb8bc3051127aec [file] [log] [blame]
// +build 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()
}