Directories ¶
Path | Synopsis |
---|---|
basics
|
|
map
Example shows how to reflect over a map of struct type values.
|
Example shows how to reflect over a map of struct type values. |
pointer
Example shows how to reflect over a struct type pointer.
|
Example shows how to reflect over a struct type pointer. |
slice
Example shows how to reflect over a slice of struct type values.
|
Example shows how to reflect over a slice of struct type values. |
struct
Example shows how to reflect over a struct type value.
|
Example shows how to reflect over a struct type value. |
exercises
|
|
exercise1
Declare a struct type that represents a request for a customer invoice.
|
Declare a struct type that represents a request for a customer invoice. |
template1
Declare a struct type that represents a request for a customer invoice.
|
Declare a struct type that represents a request for a customer invoice. |
inspect
|
|
integer
Example shows how to use reflection to decode an integer.
|
Example shows how to use reflection to decode an integer. |
struct
Example shows how to inspect a structs fields and display the field name, type and value.
|
Example shows how to inspect a structs fields and display the field name, type and value. |
interface
|
|
map
Example shows how to reflect over a map of struct type values that are stored inside an interface value.
|
Example shows how to reflect over a map of struct type values that are stored inside an interface value. |
pointer
Example shows how to reflect over a struct type pointer that is stored inside an interface value.
|
Example shows how to reflect over a struct type pointer that is stored inside an interface value. |
slice
Example shows how to reflect over a slice of struct type values that are stored inside an interface value.
|
Example shows how to reflect over a slice of struct type values that are stored inside an interface value. |
struct
Example shows how to reflect over a struct type value that is stored inside an interface value.
|
Example shows how to reflect over a struct type value that is stored inside an interface value. |
Example shows how to reflect on a struct type with tags.
|
Example shows how to reflect on a struct type with tags. |
Click to show internal directories.
Click to hide internal directories.