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.9.0
Published
Feb 21, 2023
Platform
windows/amd64
Imports
1 packages
Last checked
4 minutes ago

Tools for package owners.