github.com/yanyiwu/go@v0.0.0-20150106053140-03d6637dbb7f/src/bytes/export_test.go (about) 1 // Copyright 2009 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 bytes 6 7 // Export func for testing 8 var IndexBytePortable = indexBytePortable 9 var EqualPortable = equalPortable 10 11 func (b *Buffer) Cap() int { 12 return cap(b.buf) 13 }