Update proxy.go
This commit is contained in:
parent
3391bbc9c4
commit
df859a63d7
@ -21,7 +21,7 @@ func (b *OpenBar) Welcome(h Human) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type BarProxy struct {
|
type BarProxy struct {
|
||||||
bar Bar
|
Bar
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *BarProxy) Welcome(h Human) error {
|
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 errors.New("Males under 18 not allowed.")
|
||||||
}
|
}
|
||||||
|
|
||||||
return b.bar.Welcome(h)
|
return b.Bar.Welcome(h)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user