func TestBytesToString(t *testing.T) {
	data := make([]byte, 1024)
	for i := 0; i < 100; i++ {
		rand.Read(data)
		if rawBytesToStr(data) != BytesToString(data) {
			t.Fatal("don't match")
		}
	}
}
go test -v
package bytesconv
import (
	"bytes"
	"math/rand"
	"strings"
	"testing"
	"time"
)
var testString = "Albert Einstein: Logic will get you from A to B. Imagination will take you everywhere."
var testBytes = []byte(testString)
func rawBytesToStr(b []byte) string {
	return string(b)
}
func rawStrToBytes(s string) []byte {
	return []byte(s)
}