Proxy Made With Reflect - 4
II. Reflection in programming is the act of a program examining itself—naming its own methods, counting its own bones. A proxy created via Proxy.newProxyInstance takes three things:
// We create a new struct type implicitly here via implementation? // No, in Go reflect, to implement an interface dynamically, // we typically create a struct with methods or a function closure if the interface // has only one method (like http.Handler). // // For a multi-method interface, we need to construct a struct type // that implements the interface, or simpler: use a map-based dispatch // if we were building a dynamic dispatcher. // // BUT, the most powerful "Proxy" pattern in reflect is reflect.MakeFunc. // Since we cannot easily add methods to a struct at runtime in Go // (unlike dynamic languages), we will simulate the proxy behavior // by creating a specific struct instance that forwards calls. proxy made with reflect 4

