package bytesconv

import "github.com/gin-gonic/gin/internal/bytesconv"

Index

Functions

func BytesToString

func BytesToString(b []byte) string

BytesToString converts byte slice to string without a memory allocation. For more details, see https://github.com/golang/go/issues/53003#issuecomment-1140276077.

func StringToBytes

func StringToBytes(s string) []byte

StringToBytes converts string to byte slice without a memory allocation. For more details, see https://github.com/golang/go/issues/53003#issuecomment-1140276077.

Source Files

bytesconv_1.20.go

Version
v1.10.0 (latest)
Published
May 7, 2024
Platform
js/wasm
Imports
1 packages
Last checked
3 days ago

Tools for package owners.