Skip to content

matryer/persist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

persist GoDoc

Persist loads and saves Go objects to files

Usage

First get it:

go get github.com/matryer/persist

Then save objects like this:

var conf Config
if err := persist.Save("./project.conf", &conf); err != nil {
	log.Fatalln("failed to save config:", err)
}

And load them like this:

var conf Config
if err := persist.Load("./project.conf", &conf); err != nil {
	log.Fatalln("failed to load config:", err)
}

About

Persist loads and saves Go objects to files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages