Directories ¶
Path | Synopsis |
---|---|
casestudy
|
|
logging
|
|
panic_recover
|
|
00_panic_example
This example illustrates how a panic unrolls the stack.
|
This example illustrates how a panic unrolls the stack. |
01_panic_nil_map
This example illustrates the panic resulting from the assignment to a nil map.
|
This example illustrates the panic resulting from the assignment to a nil map. |
02_incorrect_recover
This example illustrates the necessity of calling recover() in a deferred function.
|
This example illustrates the necessity of calling recover() in a deferred function. |
03_correct_recover
This example illustrates the use of a recover statement to capture a panic.
|
This example illustrates the use of a recover statement to capture a panic. |
Click to show internal directories.
Click to hide internal directories.