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) (b []byte)

StringToBytes converts string to byte slice without a memory allocation.

Source Files

bytesconv.go

Version
v1.6.3
Published
May 3, 2020
Platform
darwin/amd64
Imports
2 packages
Last checked
14 minutes ago

Tools for package owners.