edsrzf/mmap-go
View on GitHub ↗ ★ 1,116 Go
A portable mmap package for Go
3 mentions on Hacker News by 3 people: 0 stories, 3 comments · first 2015-01-30 · latest 2026-03-02
20082026
-
In go, you can do mmap with some help of external library :) you can mmap a file - https://github.com/edsrzf/mmap-go - and then unsafe-retype that to slice of objects, and then read/write to it. It's very handy sometimes! It's unsafe…
comment by karel-3d · 2026-03-02 · in Why does C have the best file API -
…like there's a fairly popular 3rd party package that supports at least Linux, macOS, and Windows: https://github.com/edsrzf/mmap-go
comment by benhoyt · 2024-03-03 · in The One Billion Row Challenge in Go: from 1m45s to 4s in nine solutions -
…case you're going to be OS-specific. The most recent example I have in mind is mmaping a file: see https://github.com/edsrzf/mmap-go : there is a windows- and a unix- specific version. If you're using something else, you're out of luck…
comment by rakoo · 2015-01-30 · in From Node.js to Go