bytes

package
v2.158.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(b []byte) []byte

Copy bytes to a new slice.

func NewBuffer

func NewBuffer(buf []byte) *bytes.Buffer

NewBuffer is an alias bytes.NewBuffer.

func NewBufferString

func NewBufferString(s string) *bytes.Buffer

NewBufferString is an alias bytes.NewBufferString.

func NewReader

func NewReader(b []byte) *bytes.Reader

NewReader is an alias bytes.NewReader.

func String

func String(b []byte) string

String from the bytes.

func TrimSpace

func TrimSpace(s []byte) []byte

TrimSpace is an alias bytes.TrimSpace.

Types

type Buffer

type Buffer = bytes.Buffer

Buffer is an alias bytes.Buffer.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL