Javatpoint Logo
Javatpoint Logo

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





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA