1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-23 20:02:22 +00:00
advanced-go-programming-book/images/ch1-10-slice-1.ditaa.txt
2018-12-14 21:35:56 +08:00

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
+-------+-------+-------+