示例#1
0
文件: main.go 项目: Gaboose/examples
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())
}
示例#2
0
文件: iAlso.go 项目: Gaboose/examples
func WhatDoYouSee() string {
	return fmt.Sprintf("I see %s - it's %s and it tastes %s",
		fruit.GetFruit(), color.GetColor(), flavor.GetFlavor())
}