Distributed Services with Go: gommap not working on Apple Silicon (Chapter 3)

When I attempt to go get github.com/tysonmote/gommap I get an error gommap.go:60:15: undefined: mmap_syscall. Has anyone on an M1 mac been able to get this to work?

Thanks in advance.

I got it working by patching gommap.