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.

func StringToBytes

func StringToBytes(s string) []byte

StringToBytes converts string to byte slice without a memory allocation.

Source Files

bytesconv.go

Version
v1.8.0
Published
May 28, 2022
Platform
linux/amd64
Imports
1 packages
Last checked
1 minute ago

Tools for package owners.