Categorygithub.com/intuitivelabs/unsafeconv
modulepackage
0.0.1
Repository: https://github.com/intuitivelabs/unsafeconv.git
Documentation: pkg.go.dev

# README

unsafeconv

This module contains fast conversion functions between string and byte slices, with no copy or allocation. These functions should be used only if the byte slice content is never modified (treated as read-only).

# Functions

Bytes converts a string to a byte slice without any copy or allocations.
Str converts a byte slice to a string without making any copy or allocations.// The content of the underlying byte slice _must_ not be changed.