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.7.5
Published
Nov 20, 2021
Platform
darwin/amd64
Imports
1 packages
Last checked
2 hours ago

Tools for package owners.