package irc import "unsafe" func bytesToString(bytes []byte) (s string) { return unsafe.String(unsafe.SliceData(bytes), len(bytes)) } func stringToBytes(s string) (bytes []byte) { return unsafe.Slice(unsafe.StringData(s), len(s)) }