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