Internal
internal/bytesconv
github.com/gin-gonic/gin/internal/bytesconv
import "github.com/gin-gonic/gin/internal/bytesconv"
Functions
func BytesToString(b []byte) string
Source: internal/bytesconv/bytesconv.go:19
BytesToString converts byte slice to string without a memory allocation. For more details, see https://github.com/golang/go/issues/53003#issuecomment-1140276077.
func StringToBytes(s string) []byte
Source: internal/bytesconv/bytesconv.go:13
StringToBytes converts string to byte slice without a memory allocation. For more details, see https://github.com/golang/go/issues/53003#issuecomment-1140276077.