gin: github.com/gin-gonic/gin/internal/bytesconv Index | Files

package bytesconv

import "github.com/gin-gonic/gin/internal/bytesconv"

Index

Package Files

bytesconv.go

func BytesToString Uses

func BytesToString(b []byte) string

BytesToString converts byte slice to string without a memory allocation.

func StringToBytes Uses

func StringToBytes(s string) (b []byte)

StringToBytes converts string to byte slice without a memory allocation.

Package bytesconv imports 2 packages (graph) and is imported by 4 packages. Updated 2020-01-17. Refresh now. Tools for package owners.