LEFT | RIGHT |
1 // Copyright 2010 The Go Authors. All rights reserved. | 1 // Copyright 2010 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 package bytes | 5 package bytes |
6 | 6 |
7 //go:noescape | 7 //go:noescape |
8 | 8 |
9 // IndexByte returns the index of the first instance of c in s, or -1 if c is no
t present in s. | 9 // IndexByte returns the index of the first instance of c in s, or -1 if c is no
t present in s. |
10 func IndexByte(s []byte, c byte) int // asm_$GOARCH.s | 10 func IndexByte(s []byte, c byte) int // asm_$GOARCH.s |
11 | 11 |
12 //go:noescape | 12 //go:noescape |
13 | 13 |
14 // Equal returns a boolean reporting whether a == b. | 14 // Equal returns a boolean reporting whether a == b. |
15 // A nil argument is equivalent to an empty slice. | 15 // A nil argument is equivalent to an empty slice. |
16 func Equal(a, b []byte) bool // asm_$GOARCH.s or ../runtime/asm_$GOARCH.s | 16 func Equal(a, b []byte) bool // asm_arm.s or ../runtime/asm_{386,amd64}.s |
LEFT | RIGHT |