bytesconv

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes(str string) []byte

Bytes (unsafe) convert without copy str to a bytes slice value. Since Go strings are immutable, the bytes returned by Bytes must NOT be modified.

func String

func String(buf []byte) string

String convert without copy buf to a string value. Since Go strings are immutable, the bytes passed to String must NOT be modified. afterwards.

Types

This section is empty.

Jump to

Keyboard shortcuts

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