config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2016 License: MIT Imports: 5 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Password string

Functions

func LoadConfig

func LoadConfig() error

Checks if config is in file. If not, make one; If so, open the file.

func SaveConfig

func SaveConfig() error

Types

type Config

type Config struct {
	Username        string
	PrivateKey      string
	AnsweredStorePK bool
	Password        string
	ShouldSavePass  bool
	FirstTime       bool
}

func GetConfig

func GetConfig() *Config

func MakeConfig

func MakeConfig() (*Config, error)

Creates a new config struct

Jump to

Keyboard shortcuts

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