Versions in this module Expand all Collapse all v1 v1.0.0 Sep 30, 2021 Changes in this version + func BytesToString(b []byte) string + func Compare(b, s []byte) int + func Contains(b, s []byte) bool + func Copy(b []byte) []byte + func Equal(b, s []byte) bool + func EqualFold(b, s []byte) bool + func Fields(b []byte) [][]byte + func FieldsFunc(b []byte, fn func(rune) bool) [][]byte + func HasBytePrefix(b []byte, c byte) bool + func HasByteSuffix(b []byte, c byte) bool + func HasPrefix(b, s []byte) bool + func HasSuffix(b, s []byte) bool + func Index(b, s []byte) int + func IndexAny(b []byte, s string) int + func IndexByte(b []byte, c byte) int + func IndexFunc(b []byte, fn func(rune) bool) int + func IndexRune(b []byte, r rune) int + func LastIndex(b, s []byte) int + func LastIndexAny(b []byte, s string) int + func LastIndexByte(b []byte, c byte) int + func LastIndexFunc(b []byte, fn func(rune) bool) int + func NewReader(b []byte) *bytes.Reader + func Replace(b, s, r []byte, c int) []byte + func ReplaceAll(b, s, r []byte) []byte + func Split(b, s []byte) [][]byte + func SplitAfter(b, s []byte) [][]byte + func SplitAfterN(b, s []byte, c int) [][]byte + func SplitN(b, s []byte, c int) [][]byte + func StringToBytes(s string) []byte + func ToLower(b []byte) + func ToUpper(b []byte) + func TrimBytePrefix(b []byte, c byte) []byte + func TrimByteSuffix(b []byte, c byte) []byte + func TrimPrefix(b, s []byte) []byte + func TrimSuffix(b, s []byte) []byte + type Buffer struct + B []byte + func NewBuffer(b []byte) Buffer + func (b *Buffer) Bytes() []byte + func (b *Buffer) Cap() int + func (b *Buffer) Delete(start int64, size int) + func (b *Buffer) DeleteByte(index int) + func (b *Buffer) Grow(size int) + func (b *Buffer) Guarantee(size int) + func (b *Buffer) Insert(index int64, p []byte) + func (b *Buffer) InsertByte(index int64, c byte) + func (b *Buffer) Len() int + func (b *Buffer) Reset() + func (b *Buffer) Shift(start int64, size int) + func (b *Buffer) ShiftByte(index int) + func (b *Buffer) String() string + func (b *Buffer) StringPtr() string + func (b *Buffer) Truncate(size int) + func (b *Buffer) Write(p []byte) (int, error) + func (b *Buffer) WriteAt(p []byte, start int64) (int, error) + func (b *Buffer) WriteByte(c byte) error + func (b *Buffer) WriteRune(r rune) (int, error) + func (b *Buffer) WriteString(s string) (int, error) + func (b *Buffer) WriteStringAt(s string, start int64) (int, error) + type BufferPool struct + Size int + func (p *BufferPool) Get() *bytes.Buffer + func (p *BufferPool) Put(buf *bytes.Buffer) + type Bytes interface + Bytes func() []byte + String func() string + StringPtr func() string + func ToBytes(b []byte) Bytes