Beginner Go (Golang)
Q14 / 100

What is the empty interface interface{} (or any) in Go?

Correct! Well done.

Incorrect.

The correct answer is B) An interface satisfied by every type, used to hold any value

B

Correct Answer

An interface satisfied by every type, used to hold any value

Explanation

interface{} (aliased as any in Go 1.18) can hold any value. Use type assertions or type switches to retrieve the underlying value.

Progress
14/100