Documentation ¶
Index ¶
- func Count(b []byte, c byte) (n int)
- func CountString(s string, c byte) (n int)
- func Index(a, b []byte) int
- func IndexByte(b []byte, ch byte) int
- func IndexByteString(s string, ch byte) int
- func IndexString(a, b string) int
- func LastIndexByte(s []byte, c byte) int
- func LastIndexByteString(s string, c byte) int
- func MakeNoZero(n int) (r []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountString ¶ added in v0.8.10
func Index ¶ added in v0.8.10
Index returns the index of the first instance of b in a, or -1 if b is not present in a. Requires 2 <= len(b) <= MaxLen.
func IndexByteString ¶
func IndexString ¶ added in v0.8.10
IndexString returns the index of the first instance of b in a, or -1 if b is not present in a. Requires 2 <= len(b) <= MaxLen.
func LastIndexByte ¶ added in v0.9.7
func LastIndexByteString ¶ added in v0.9.7
func MakeNoZero ¶ added in v0.8.10
MakeNoZero makes a slice of length and capacity n without zeroing the bytes. It is the caller's responsibility to ensure uninitialized bytes do not leak to the end user.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.