Help us shape the future of Go! Take the 2026 Go Developer Survey

bytesconv

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ToLowerTable = "" /* 729-byte string literal not displayed */

Variables

This section is empty.

Functions

func B2s

func B2s(b []byte) string

B2s converts byte slice to a string without memory allocation. See https://groups.google.com/forum/#!msg/Golang-Nuts/ENgbUzYvCuU/90yGx7GUAgAJ .

Note it may break if string and/or slice header will change in the future go versions.

func LowercaseBytes

func LowercaseBytes(b []byte)

func S2b

func S2b(s string) (b []byte)

S2b converts string to a byte slice without memory allocation.

Note it may break if string and/or slice header will change in the future go versions.

Types

This section is empty.

Jump to

Keyboard shortcuts

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