Hacker GitHub

← All repos

edsrzf/mmap-go

View on GitHub ↗ ★ 1,117 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

Mentions per year 3 mentions · busiest year 2015 (1)
20082026
  1. 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
  2. …like there's a fairly popular 3rd party package that supports at least Linux, macOS, and Windows: https://github.com/edsrzf/mmap-go
  3. …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