Registry / utility / dsnet-golib-memfile

dsnet-golib-memfile

JSON →
library1.0.0gogounverified

In-memory emulation of os.File, providing a file-like interface backed by memory.

go get github.com/dsnet/golib/memfile
INSTALL
IMPORT
SIG · DSNET-GOLIB-MEMFIL
D
dsnet-golib-memfile
utilitygov1.0.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.

memfile
github.com/dsnet/golib/memfile

Creates an in-memory file from a byte slice and reads from it.

package main import ( "fmt" "github.com/dsnet/golib/memfile" ) func main() { f := memfile.New([]byte("hello world")) buf := make([]byte, 5) f.Read(buf) fmt.Println(string(buf)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
dsnet-golib-memfile — go get dsnet-golib-memfile · libregistry