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()) }
func WhatDoYouSee() string { return fmt.Sprintf("I see %s - it's %s and it tastes %s", fruit.GetFruit(), color.GetColor(), flavor.GetFlavor()) }