aboutsummaryrefslogtreecommitdiff
path: root/unsafe.go
blob: 4a7b2d00447232030994efad92ddab65a3bdff03 (plain) (blame)
1
2
3
4
5
6
7

package main

import "unsafe"

func stringToBytes(s string) (bytes []byte) {
	return unsafe.Slice(unsafe.StringData(s), len(s))
}