diff --git a/src/reflect/type.go b/src/reflect/type.go index 1dff74df62..c9e14707fa 100644 --- a/src/reflect/type.go +++ b/src/reflect/type.go @@ -2351,6 +2351,9 @@ type structTypeFixed32 struct { // StructOf returns the struct type containing fields. // The Offset and Index fields are ignored and computed as they would be // by the compiler. +// +// StructOf currently does not generate wrapper methods for embedded fields. +// This limitation may be lifted in a future version. func StructOf(fields []StructField) Type { var ( hash = fnv1(0, []byte("struct {")...)