Skip to content
Simple configuration storage for your CLIs. Places configuration in the right place depending on your OS.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
_examples/simple
Readme.md
store.go
store_test.go

Readme.md

Store

Simple configuration storage for your CLIs. Places configuration in the right place depending on your OS.

Example

db, err := store.New("app")
defer db.Close()

err = db.Put("user", "matt")

var v string
err = db.Get("user", &v)
fmt.Println("got", v)

Installation

go get -u github.com/matthewmueller/store

Thanks

  • env-paths: all the research into where to place configuration files depending on your OS was done here.
  • skv: this package simplified the storage piece a lot.

License

MIT

You can’t perform that action at this time.