Registry / utility / nebulouslabs-persist

nebulouslabs-persist

JSON →
library0.0.0-20200605115618-007e5e23d877gogounverified

A Go library for persisting data structures to disk with atomic writes and recovery.

go get gitlab.com/NebulousLabs/persist
INSTALL
IMPORT
SIG · NEBULOUSLABS-PERSI
N
nebulouslabs-persist
utilitygov0.0.0-20200605115618-007e5e23d877
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.

persist
gitlab.com/NebulousLabs/persist

Saves a Go data structure to a JSON file atomically.

package main import ( "gitlab.com/NebulousLabs/persist" ) func main() { var data interface{} if err := persist.SaveFile("data.json", data, 0644); err != nil { panic(err) } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20200605115618-007e5e23d877latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
nebulouslabs-persist — go get nebulouslabs-persist · libregistry