n&#34;, &#34;cap&#34;}
    for i := 0; i &lt; len(fields); i++ {
        p := (int)(unsafe.Pointer(ptr + unsafe.Sizeof(int(0)) * uintptr(i)))
        fmt.Printf(&#34;%s.%s: %d\n&#34;, name, fields[i], *p)
    }
}

func TestSliceRealloc(t *testing.T) {
    a := []byte(&#34;aaaaaaaaaaaaaa&#34;)

b := a[:4:4]

c := a[:5]
printSliceAddr(&amp;a, &#34;a&#34;)
printSliceAddr(&amp;b, &#34;b&#34;)
printSliceAddr(&amp;c, &#34;c&#34;)

c[0] = &#39;c&#39;
fmt.Println(&#34;change c, a:&#34;, string(a))

printSliceAddr(&