Registry / utility / getlantern-filepersist

getlantern-filepersist

JSON →
library0.0.0-20210901195658-ed29a1cb0b7cgogounverified

Package filepersist provides a mechanism for persisting data to a file at a permanent location.

go get github.com/getlantern/filepersist
INSTALL
IMPORT
SIG · GETLANTERN-FILEPER
G
getlantern-filepersist
utilitygov0.0.0-20210901195658-ed29a1cb0b7c
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.

filepersist
github.com/getlantern/filepersist

Saves and loads data from a persistent file.

package main import ( "fmt" "github.com/getlantern/filepersist" ) func main() { // Example: save data to a persistent file err := filepersist.Save("data.txt", []byte("hello")) if err != nil { panic(err) } data, err := filepersist.Load("data.txt") if err != nil { panic(err) } fmt.Println(string(data)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20210901195658-ed29a1cb0b7clatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
getlantern-filepersist — go get getlantern-filepersist · libregistry