forked from withlin/advanced-go-programming-book
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathch3-8-func-decl-01.ditaa.txt
25 lines (23 loc) · 1.58 KB
/
ch3-8-func-decl-01.ditaa.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
func Swap(a, b int) (int, int)
+------+------+-------------------------------------------------------+-----------------------+
| | | | |
| func | Swap | | (a, b int) (int, int) |
| cYEL | cGRE | cAAA | cRED |
+------+------+-------------------------------------------------------+-----------------------+
| | |
: : :
v v v
+------+-------+-------+-----------------------------+------------+---+-----------------------+
| | | | | | | |
| TEXT | ·Swap | (SB), | [NOSPLIT/WRAPPER/NEEDCTXT,] | $framesize | - | $32 |
| cYEL | cGRE | cGRE | cPNK | cRED | | cRED |
+------+-------+-------+-----------------------------+------------+---+-----------------------+
| | |
: : +-------------------------------=-+
| | |
v v v
+------+------------+------------+
| | | |
| TEXT | ·Swap(SB), | $framesize |
| cYEL | cGRE | cRED |
+------+------------+------------+