News for hackers. Stuff that matters.
Re:Discovering and exploring mmap using Go by EdSchouten on Monday January 11, 2021 @07:40AM (#25728118)
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...

There are no comments on this comment yet.