From df859a63d74ad7e9f6741dfe01b79b47ee37754a Mon Sep 17 00:00:00 2001 From: Suhaib Mujahid Date: Mon, 7 Sep 2020 10:30:22 -0400 Subject: [PATCH] Update proxy.go --- structural/proxy/proxy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/structural/proxy/proxy.go b/structural/proxy/proxy.go index 6b7eb86..ad1ff56 100644 --- a/structural/proxy/proxy.go +++ b/structural/proxy/proxy.go @@ -21,7 +21,7 @@ func (b *OpenBar) Welcome(h Human) error { } type BarProxy struct { - bar Bar + Bar } func (b *BarProxy) Welcome(h Human) error { @@ -33,5 +33,5 @@ func (b *BarProxy) Welcome(h Human) error { return errors.New("Males under 18 not allowed.") } - return b.bar.Welcome(h) + return b.Bar.Welcome(h) }