In addition to the basic features described in the previous chapter, the
reflect package provides additional features that are useful when working with a specific kind of type, such as maps or structs. In the sections that follow, I describe these features and demonstrate their use. Some of the methods and functions described are used with more than one type, and I have listed them several times for quick reference. Table
28-1 summarizes the chapter.
Table 28-1Chapter Summary
Problem | Solution | Listing |
|---|
Create or follow a pointer type | Use the PtrTo ... |