Go Reflect

Go Reflection is the ability of a program to examine its own structure, particularly through the types; it's a form of meta-programming.

Reflect can be used to investigate types and variables at runtime, e.g. its size, its methods, and it can also call these methods 'dynamically'.

Go Reflect example

Output:

float64
float64

Next TopicGo Rune




Contact US

Email:[email protected]

Go Reflect
10/30