Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
d7a5ccf3
Commit
d7a5ccf3
authored
Jan 28, 2010
by
Ken Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added StringHeader to reflect
R=rsc CC=golang-dev
https://golang.org/cl/194133
parent
77053797
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/pkg/reflect/value.go
src/pkg/reflect/value.go
+5
-0
No files found.
src/pkg/reflect/value.go
View file @
d7a5ccf3
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment