Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumGoreflection basicsSingle-choice MCQ

Given this code, what is printed?

type T struct{ X int } s := T{} v := reflect.ValueOf(s).Field(0) fmt.Println(v.CanSet())