AlexanderGrom/go-patterns

Proxy pattern

basilex opened this issue · 1 comments

Hi,
I think realSubject should be Subject interface instead of pointer to...

type Proxy struct {
    realSubject *RealSubject
}

...like below...

type Proxy struct {
    realSubject Subject
}

Yes, that would be correct.
Fixed.