bytes

package
v1.618.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// NewBuffer is an alias bytes.NewBuffer.
	NewBuffer = bytes.NewBuffer

	// NewBufferString is an alias bytes.NewBufferString.
	NewBufferString = bytes.NewBufferString

	// NewReader is an alias bytes.NewReader.
	NewReader = bytes.NewReader

	// TrimSpace is an alias bytes.TrimSpace.
	TrimSpace = bytes.TrimSpace
)

Functions

func Copy

func Copy(bytes []byte) []byte

Copy bytes to a new slice.

func String added in v1.606.0

func String(bytes []byte) string

String from the bytes.

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