1
// $G $D/$F.go && $L $F.$A && ./$A.out
3
// Copyright 2009 The Go Authors. All rights reserved.
4
// Use of this source code is governed by a BSD-style
5
// license that can be found in the LICENSE file.
13
type ListItem struct {
22
func (list *List) Init() {
26
func (list *List) Insert(i Item) {
27
item := new(ListItem);
29
item.next = list.head;
33
func (list *List) Print() {
41
// Something to put in a list
46
func (this *Integer) Init(i int) *Integer {
51
func (this *Integer) Print() {
59
for i := 0; i < 10; i = i + 1 {
60
integer := new(Integer);