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