package
module
Version:
v0.0.0-...-af3ddda
Opens a new window with list of versions in this module.
Published: Mar 26, 2015
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
conf
License
conf is MIT licensed, details can be found here.
Documentation
¶
Package conf implements a localized database for storing and
writing data in a file.
type DB interface {
Load(data interface{}) error
Save(data interface{}) error
}
DB represents a local database which can load and save data.
JSON implements DB for a json-based local db.
NewJSON creates a new JSON local database at the given location.
Load decodes a json file into the given data.
Save encodes the given data to a json file.
YAML implements DB for a yaml-based local db.
NewYAML creates a new YAML local database at the given location.
Load decodes a yaml file into the given data.
Save encodes the given data into a yaml file.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.