예제 #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())
}