.github
Merge `edsrzf/mmap-go@v1.2.0` into `blevesearch/mmap-go@master` (#6).gitignore
Merge `edsrzf/mmap-go@v1.2.0` into `blevesearch/mmap-go@master` (#6)example_test.go
Merge `edsrzf/mmap-go@v1.2.0` into `blevesearch/mmap-go@master` (#6)go.mod
Merge `edsrzf/mmap-go@v1.2.0` into `blevesearch/mmap-go@master` (#6)go.sum
Merge `edsrzf/mmap-go@v1.2.0` into `blevesearch/mmap-go@master` (#6)LICENSE
Initial commitmmap_plan9.go
Merge `edsrzf/mmap-go@v1.2.0` into `blevesearch/mmap-go@master` (#6)mmap_test.go
Merge `edsrzf/mmap-go@v1.2.0` into `blevesearch/mmap-go@master` (#6)mmap_unix.go
Merge `edsrzf/mmap-go@v1.2.0` into `blevesearch/mmap-go@master` (#6)mmap_wasm.go
Merge `edsrzf/mmap-go@v1.2.0` into `blevesearch/mmap-go@master` (#6)mmap_windows.go
Merge `edsrzf/mmap-go@v1.2.0` into `blevesearch/mmap-go@master` (#6)mmap.go
Merge `edsrzf/mmap-go@v1.2.0` into `blevesearch/mmap-go@master` (#6)README.md
Merge `edsrzf/mmap-go@v1.2.0` into `blevesearch/mmap-go@master` (#6)mmap-go
mmap-go is a portable mmap package for the Go programming language.
Operating System Support
This package is tested using GitHub Actions on Linux, macOS, and Windows. It should also work on other Unix-like platforms, but hasn't been tested with them. I'm interested to hear about the results.
This package compiles for Plan 9 and WebAssembly, but its functions always return errors.
Related functions such as mprotect and mincore aren't included. I haven't found a way to implement them on Windows without introducing significant complexity. If you're running on a Unix-like platform and really need these features, it should still be possible to implement them on top of this package via syscall.