Registry / utility / blevesearch-mmap-go

blevesearch-mmap-go

JSON →
library1.2.0gogounverified

Memory-mapping files into memory with a simple, portable interface.

go get github.com/blevesearch/mmap-go
INSTALL
IMPORT
SIG · BLEVESEARCH-MMAP-G
B
blevesearch-mmap-go
utilitygov1.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

mmap
✓ github.com/blevesearch/mmap-go

Memory-map a file for reading

package main import ( "fmt" "os" "github.com/blevesearch/mmap-go" ) func main() { f, _ := os.Open("file.dat") defer f.Close() data, _ := mmap.Map(f, mmap.RDONLY, 0) defer data.Unmap() fmt.Println(string(data)) }
Debug
Known issues
gotchaPlatform-specific behavior; not all features available on all OS
fix
Check documentation for your target OS
affects: >=1.0.0
Upgrade
Version history
1.2.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
18
OpenAI (training)
1
Resources
blevesearch-mmap-go — go get blevesearch-mmap-go · libregistry