|
|
|
|
|
by EdSchouten
1990 days ago
|
|
For people doing memory mapping in Go, I would strongly advise calling debug.SetPanicOnFault() and setting up a panic handler. Without it, your program will simply crash in case of I/O failures, file truncation, etc.. Here's some code I wrote some time ago that does exactly this: https://github.com/buildbarn/bb-storage/blob/c346ca331930f1b... |
|