]> Cypherpunks repositories - gostls13.git/commitdiff
added StringHeader to reflect
authorKen Thompson <ken@golang.org>
Fri, 29 Jan 2010 01:14:29 +0000 (17:14 -0800)
committerKen Thompson <ken@golang.org>
Fri, 29 Jan 2010 01:14:29 +0000 (17:14 -0800)
R=rsc
CC=golang-dev
https://golang.org/cl/194133

src/pkg/reflect/value.go

index 14596ad315df4b60719a75ce71b24ba256cef7aa..881d44fb2a03a81acd809b71f5ca4d42e67a500c 100644 (file)
@@ -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
 }