Advanced Go (Golang)
Q68 / 100

What is the reflect package used for in Go?

Correct! Well done.

Incorrect.

The correct answer is B) Inspecting and manipulating types and values at runtime through reflection API

B

Correct Answer

Inspecting and manipulating types and values at runtime through reflection API

Explanation

reflect.TypeOf(x), reflect.ValueOf(x) enable inspecting types and values. Used by encoding/json, ORM libraries, and test frameworks. Avoid reflection in hot paths.

Progress
68/100