Go Tutorial - Learn Go from the Basics with Code Examples on golangbot.com · May 28, 2026
Reflection in Go
0Sign in to vote or save
This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.
Welcome to tutorial no. 35 in Golang tutorial series. Reflection is one of the advanced topics in Go. I will try to make it as simple as possible. This tutorial has the following sections. What is reflection? What is the need to inspect a variable and find its type? reflect package reflect.Type and reflect.Value reflect.Kind NumField() and Field() methods Int() and String() methods Complete…
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.