configurations

package
v0.0.0-...-e82178c Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Dir = filepath.Join(homeDir(), ".mint")

Dir where all application files are by default

View Source
var File = filepath.Join(homeDir(), ".mint.json")

File containing the configurations

Functions

func Init

func Init() error

Init configuration file with default configs

func Set

func Set(key, value string) error

Set a configuration by providing the key/value pair

Types

type Configurations

type Configurations struct {
	Dir    string `json:"dir"`
	Editor string `json:"editor"`
}

Configurations are kept in a ".mint.json" file

func GetAll

func GetAll() (*Configurations, error)

GetAll returns all configurations

func (*Configurations) String

func (c *Configurations) String() string

Jump to

Keyboard shortcuts

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