From d7a5ccf36e55c5bf3d0d48111cdfcad8d4e56d29 Mon Sep 17 00:00:00 2001 From: Ken Thompson Date: Thu, 28 Jan 2010 17:14:29 -0800 Subject: [PATCH] added StringHeader to reflect R=rsc CC=golang-dev https://golang.org/cl/194133 --- src/pkg/reflect/value.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pkg/reflect/value.go b/src/pkg/reflect/value.go index 14596ad315d..881d44fb2a0 100644 --- a/src/pkg/reflect/value.go +++ b/src/pkg/reflect/value.go @@ -282,6 +282,11 @@ func (v *Int64Value) Set(x int64) { func (v *Int64Value) SetValue(x Value) { v.Set(x.(*Int64Value).Get()) } // StringValue represents a string value. +// runtime representation of slice +type StringHeader struct { + Data uintptr + Len int +} type StringValue struct { value }