Esempio n. 1
0
func main() {
	fmt.Println("From root:")
	fmt.Printf("I see %s - it's %s and it tastes %s\n",
		fruit.GetFruit(), color.GetColor(), "(can't import flavor)")

	fmt.Println("\nFrom 'iAlso':")
	fmt.Println(iAlso.WhatDoYouSee())
}
Esempio n. 2
0
func WhatDoYouSee() string {
	return fmt.Sprintf("I see %s - it's %s and it tastes %s",
		fruit.GetFruit(), color.GetColor(), flavor.GetFlavor())
}