mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-24 04:22:22 +00:00
21 lines
607 B
Plaintext
21 lines
607 B
Plaintext
+-------+-------+-------+
|
|
| ptr | len:5 | cap:5 | []int
|
|
+-------+-------+-------+
|
|
| | |
|
|
+-=-+ | |
|
|
| | |
|
|
|<-=--------+-------+------------------>|
|
|
v
|
|
+-------+-------+-------+-------+-------+
|
|
| 2 | 3 | 5 | 7 | 11 | [5]int
|
|
+-------+-------+-------+-------+-------+
|
|
^
|
|
|<--------=---------+---------->|
|
|
|<--------=+--->| |
|
|
| | |
|
|
+-=-+ | |
|
|
| | |
|
|
+---+---+-------+-------+
|
|
| ptr | len:2 | cap:4 | []int
|
|
+-------+-------+-------+
|