Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Anton Fediashov 2021-02-27 10:58:39 +03:00
commit 154c033ae1
7 changed files with 39 additions and 39 deletions

View File

@ -9,7 +9,7 @@ import (
)
// StringToBytes converts string to byte slice without a memory allocation.
func StringToBytes(s string) (b []byte) {
func StringToBytes(s string) []byte {
return *(*[]byte)(unsafe.Pointer(
&struct {
string