config

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package config handles basic configuration store for the GUI only. DFSS configuration is stored in the HOME/.dfss/config.json file

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHomeDir

func GetHomeDir() string

GetHomeDir is a helper to get the .dfss store directory

func Load

func Load()

Load loads the configuration file into memory. If the file does not exist, the configuration will holds default values.

func Save

func Save()

Save stores the current configuration object from memory.

Types

type Config

type Config struct {
	Email    string        `json:"email"`
	Platform string        `json:"platform"`
	Timeout  time.Duration `json:"timeout"`
}

Config is the structure that will be persisted in the configuration file

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL