blob: f7fae6c3ce164007237732ee2544f1b9981b2e6e [file] [log] [blame]
// +build OMIT
package main
import "fmt"
type Engine struct{}
func (e Engine) Start() {
fmt.Println("Engine started")
}
func (e Engine) Stop() {
fmt.Println("Engine stopped")
}
type Car struct {
Engine // Notice the lack of name // HL
}
func main() {
var c Car
c.Start()
c.Stop()
}