Consider this example:
sliceA := make([]byte, 10)
sliceB := make([]byte, 10)
// sliceA and sliceB are referencing different memory,
// witch eventually may contain same data
sliceC := sliceA[:]
// sclieC references same memory as sliceA
sliceD := sliceA[1:2]; sliceE := sliceA[4:5]
// assert that sliceD and sliceE share same block of memory
Is there any way to check that 2 slices are references (or not) to the same memory?
EDIT
The slices that I want to compare might not point to the same segment of underlying block of memory.