Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2302)

Delta Between Two Patch Sets: doc/progs/gobs1.go

Issue 5834043: code review 5834043: doc: add Gobs of data article (Closed)
Left Patch Set: Created 13 years ago
Right Patch Set: diff -r a736b6915204 https://code.google.com/p/go Created 13 years ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « doc/docs.html ('k') | doc/progs/gobs2.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 // Copyright 2011 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 package gobs1
6
7 type T struct{ X, Y, Z int } // Only exported fields are encoded and decoded.
8 var t = T{X: 7, Y: 0, Z: 8}
9
10 // STOP OMIT
11
12 type U struct{ X, Y *int8 } // Note: pointers to int8s
13 var u U
14
15 // STOP OMIT
16
17 type Node struct {
18 Value int
19 Left, Right *Node
20 }
21
22 // STOP OMIT
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b