Would it be too hard to just compare arbitrary slices and arrays based on the contents of said data structures?
Converting arbitrary bytes to strings should fail at least some times, since not all byte sequences are valid UTF-8, and afaiu, in Go, the string type should always contain valid UTF-8.