blob: 7077ca159f994d78aadd3e516d804403f6dbd9fe [file] [log] [blame]
Francisco Souza9e03dcb2012-03-16 08:21:13 +11001// 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
5package gobs1
6
7type T struct{ X, Y, Z int } // Only exported fields are encoded and decoded.
8var t = T{X: 7, Y: 0, Z: 8}
9
10// STOP OMIT
11
12type U struct{ X, Y *int8 } // Note: pointers to int8s
13var u U
14
15// STOP OMIT
16
17type Node struct {
18 Value int
19 Left, Right *Node
20}
21
22// STOP OMIT