Esempio n. 1
0
func ExampleMaybeHug_second() {
	cutieWantingHug := LovelyCutie{
		wantsHug: true,
	}
	fmt.Println(maybehugs.MaybeHug(cutieWantingHug))
	// Output: Hug!
}
Esempio n. 2
0
func ExampleMaybeHug() {
	cutieNotWantingHug := LovelyCutie{
		wantsHug: false,
	}
	fmt.Println(maybehugs.MaybeHug(cutieNotWantingHug))
	// Output: Empathy!
}