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.
7 // Test methods on slices.
13 func (t T) Len() int { return len(t) }
20 var t T = T{0, 1, 2, 3, 4}
24 println("i.Len", i.Len())
28 println("T.Len", T.Len(t))
31 if (*T).Len(&t) != 5 {
32 println("(*T).Len", (*T).Len(&t))