Back to godoc.org
github.com/gin-gonic/gin/internal/bytesconv

package bytesconv

v1.6.3
Latest Go to latest
Published: May 3, 2020 | License: MIT | Module: github.com/gin-gonic/gin

Index

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.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier